Class: Jets::CLI::Deploy
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #paginate, #paging_params, rescue_api_error
Methods included from Util::Logging
Methods included from AwsServices
#apigateway, #aws_options, #cfn, #codebuild, #dynamodb, #lambda_client, #logs, #s3, #s3_resource, #sns, #sqs, #ssm, #sts, #wafv2
Methods included from AwsServices::StackStatus
Methods included from AwsServices::GlobalMemoist
Methods included from Api
Constructor Details
This class inherits a constructor from Jets::CLI::Base
Instance Method Details
#dev_mode_check! ⇒ Object
12 13 14 15 16 |
# File 'lib/jets/cli/deploy.rb', line 12 def dev_mode_check! if File.exist?("#{Jets.root}/dev.mode") && !ENV["JETS_SKIP_DEV_MODE_CHECK"] abort "The dev.mode file exists. Please removed it and run bundle update before you deploy.".color(:red) end end |
#run ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/jets/cli/deploy.rb', line 3 def run dev_mode_check! sure?("Will deploy #{Jets.project.namespace.color(:green)}") Tip.show(:faster_deploy) Jets::Cfn::Bootstrap.new().run Jets::Remote::Runner.new(.merge(command: "deploy")).run end |