com.woorea.openstack.console.keystone.KeystoneRoleDelete Maven / Gradle / Ivy
The newest version!
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 KeystoneRoleDelete extends KeystoneCommand {
public KeystoneRoleDelete() {
super("role-delete");
}
@Override
public void execute(Keystone keystone, CommandLine cmd) {
String[] args = cmd.getArgs();
if(args.length == 1) {
keystone.roles().delete(args[0]).execute();
System.out.println(new ConsoleUtils().green("OK"));
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy