lib/kontena/plugin/digital_ocean/node_command.rb in kontena-plugin-digitalocean-0.3.1.rc1 vs lib/kontena/plugin/digital_ocean/node_command.rb in kontena-plugin-digitalocean-0.3.1

- old
+ new

@@ -1,13 +1,5 @@ -require_relative 'nodes/create_command' -require_relative 'nodes/restart_command' -require_relative 'nodes/terminate_command' - class Kontena::Plugin::DigitalOcean::NodeCommand < Kontena::Command - - subcommand "create", "Create a new node to DigitalOcean", Kontena::Plugin::DigitalOcean::Nodes::CreateCommand - subcommand "restart", "Restart DigitalOcean node", Kontena::Plugin::DigitalOcean::Nodes::RestartCommand - subcommand "terminate", "Terminate DigitalOcean node", Kontena::Plugin::DigitalOcean::Nodes::TerminateCommand - - def execute - end + subcommand "create", "Create a new node to DigitalOcean", load_subcommand('kontena/plugin/digital_ocean/nodes/create_command') + subcommand "restart", "Restart DigitalOcean node", load_subcommand('kontena/plugin/digital_ocean/nodes/restart_command') + subcommand "terminate", "Terminate DigitalOcean node", load_subcommand('kontena/plugin/digital_ocean/nodes/terminate_command') end