blob: a79da6a2623bcd72baadf5b2fe10b36df537dc7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.woorea.openstack.console.keystone;
import org.apache.commons.cli.CommandLine;
import com.woorea.openstack.console.utils.ConsoleUtils;
import com.woorea.openstack.keystone.Keystone;
public class KeystoneTenantDelete extends KeystoneCommand {
public KeystoneTenantDelete() {
super("tenant-delete");
}
@Override
public void execute(Keystone keystone, CommandLine cmd) {
String[] args = cmd.getArgs();
if(args.length == 1) {
keystone.tenants().delete(args[0]).execute();
System.out.println(new ConsoleUtils().green("OK"));
}
}
}
|