Sha256: 6e7c45f480e16d53afb0fee0dc447cfe1c4efe5d0f4d99164fb1919484bdfe2d
Contents?: true
Size: 1.11 KB
Versions: 22
Compression:
Stored size: 1.11 KB
Contents
require 'trollop' module SimpleDeploy module CLI class Events def show opts = Trollop::options do version SimpleDeploy::VERSION banner <<-EOS Show attributes for stack. simple_deploy attributes -n STACK_NAME -e ENVIRONMENT EOS opt :help, "Display Help" opt :count, "Count of events returned.", :type => :integer, :default => 3 opt :environment, "Set the target environment", :type => :string opt :name, "Stack name to manage", :type => :string end CLI::Shared.valid_options? :provided => opts, :required => [:environment, :name] config = Config.new.environment opts[:environment] logger = SimpleDeployLogger.new :log_level => opts[:log_level] stack = Stack.new :environment => opts[:environment], :name => opts[:name], :config => config, :logger => logger jj stack.events opts[:count] end end end end
Version data entries
22 entries across 22 versions & 1 rubygems