lib/percheron/cli/abstract_command.rb in percheron-0.5.0 vs lib/percheron/cli/abstract_command.rb in percheron-0.6.0
- old
+ new
@@ -9,9 +9,16 @@
option '--version', :flag, 'show version' do
puts Percheron::VERSION
exit(0)
end
+ def self.default_parameters!
+ parameter('STACK_NAME', 'stack name', required: false)
+ parameter('CONTAINER_NAMES', 'container names', required: false, default: []) do |container_names|
+ container_names.split(/,/)
+ end
+ end
+
def default_config_file
ENV.fetch('PERCHERON_CONFIG', DEFAULT_CONFIG_FILE)
end
def config