Sha256: 566ba9967c86da292ca27317a0552eafe4fe074e6c8c3d8b611498106c3fb3ec
Contents?: true
Size: 814 Bytes
Versions: 3
Compression:
Stored size: 814 Bytes
Contents
module Phase module CLI class Deploy < Command command :deploy do |c| c.syntax = "phase deploy <environment>" c.description = <<-EOS.strip_heredoc Builds and deploys code to the specified <environment>. <environment> may be any environment configured in the Phasefile. EOS c.action do |args, options| new(args, options).run end end attr_reader :environment def initialize(args, options) @environment = args.first super end def run if environment == "sandbox" deployment = ::Phase::Deploy::SandboxDeployment.new else deployment = ::Phase::Deploy::Deployment.new(environment) end deployment.execute! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phase-0.0.14 | lib/phase/cli/deploy.rb |
phase-0.0.13 | lib/phase/cli/deploy.rb |
phase-0.0.12 | lib/phase/cli/deploy.rb |