Sha256: cfe401996b8371a5b9ded9348da7cc807cb06064c5ea034b2fd3802d661f9b32
Contents?: true
Size: 998 Bytes
Versions: 18
Compression:
Stored size: 998 Bytes
Contents
require 'trollop' require 'simple_deploy/stack/stack_lister' module SimpleDeploy module CLI class List include Shared def stacks @opts = Trollop::options do version SimpleDeploy::VERSION banner <<-EOS List stacks in an environment simple_deploy list -e ENVIRONMENT EOS opt :environment, "Set the target environment", :type => :string opt :log_level, "Log level: debug, info, warn, error", :type => :string, :default => 'info' opt :help, "Display Help" end valid_options? :provided => @opts, :required => [:environment] SimpleDeploy.create_config @opts[:environment] SimpleDeploy.logger @opts[:log_level] stacks = SimpleDeploy::StackLister.new.all.sort puts stacks end def command_summary 'List stacks in an environment' end end end end
Version data entries
18 entries across 18 versions & 1 rubygems