diff options
author | 2018-07-25 19:37:36 +0800 | |
---|---|---|
committer | 2018-07-25 19:37:36 +0800 | |
commit | b8308fc07ed741b9194b04449347117f2dfb426a (patch) | |
tree | e4aeb086d993a4dcdf8cb36740ed0a20a3086867 /openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java | |
parent | b976af3397c98517d09aa605ea09cf71d21a5f68 (diff) |
code refactroing of console code
Issue-ID: SO-729
Change-Id: I3489dbd52b114e309fb2c1bcc1388787a5b72e7a
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java')
-rw-r--r-- | openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java b/openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java index 11366fd..a45c51d 100644 --- a/openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java +++ b/openstack-console/src/main/java/com/woorea/openstack/console/nova/NovaCommand.java @@ -24,18 +24,18 @@ import com.woorea.openstack.nova.Nova; public abstract class NovaCommand extends Command { - - public NovaCommand(String name) { - super(name); - } - - @Override - public void execute(Console console, CommandLine args) { - NovaEnvironment environment = (NovaEnvironment) console.getEnvironment(); - execute(environment.CLIENT, args); - - } - - protected abstract void execute(Nova nova, CommandLine args); + + public NovaCommand(String name) { + super(name); + } + + @Override + public void execute(Console console, CommandLine args) { + NovaEnvironment environment = (NovaEnvironment) console.getEnvironment(); + execute(environment.CLIENT, args); + + } + + protected abstract void execute(Nova nova, CommandLine args); } |