lib/kontena/plugin/digital_ocean_command.rb in kontena-plugin-digitalocean-0.3.1.rc1 vs lib/kontena/plugin/digital_ocean_command.rb in kontena-plugin-digitalocean-0.3.1
- old
+ new
@@ -1,11 +1,4 @@
-require_relative 'digital_ocean/master_command'
-require_relative 'digital_ocean/node_command'
-
class Kontena::Plugin::DigitalOceanCommand < Kontena::Command
-
- subcommand 'master', 'DigitalOcean master related commands', Kontena::Plugin::DigitalOcean::MasterCommand
- subcommand 'node', 'DigitalOcean node related commands', Kontena::Plugin::DigitalOcean::NodeCommand
-
- def execute
- end
+ subcommand 'master', 'DigitalOcean master related commands', load_subcommand('kontena/plugin/digital_ocean/master_command')
+ subcommand 'node', 'DigitalOcean node related commands', load_subcommand('kontena/plugin/digital_ocean/node_command')
end