Sha256: 0c2e61fb296bc104f4d3096afd2eae3880dda18cfdd5064a5b6927a42186c8d0
Contents?: true
Size: 991 Bytes
Versions: 22
Compression:
Stored size: 991 Bytes
Contents
require 'trollop' module SimpleDeploy module CLI class Template def show opts = Trollop::options do version SimpleDeploy::VERSION banner <<-EOS Show current template for stack. simple_deploy template -n STACK_NAME -e ENVIRONMENT EOS opt :help, "Display Help" 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.template end end end end
Version data entries
22 entries across 22 versions & 1 rubygems