lib/kontena/cli/registry_command.rb in kontena-cli-1.1.6 vs lib/kontena/cli/registry_command.rb in kontena-cli-1.2.0.dev1
- old
+ new
@@ -1,11 +1,8 @@
-require_relative 'registry/create_command'
-require_relative 'registry/remove_command'
-
class Kontena::Cli::RegistryCommand < Kontena::Command
- subcommand "create", "Create Docker image registry service", Kontena::Cli::Registry::CreateCommand
- subcommand ["remove","rm"], "Remove Docker image registry service", Kontena::Cli::Registry::RemoveCommand
+ subcommand "create", "Create Docker image registry service", load_subcommand('registry/create_command')
+ subcommand ["remove","rm"], "Remove Docker image registry service", load_subcommand('registry/remove_command')
def execute
end
end