Class: Jets::Command::DeployCommand
- Includes:
- EnvironmentArgument
- Defined in:
- lib/jets/commands/deploy/deploy_command.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Base
banner, base_name, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, #help, hide_command!, inherited, long_desc, namespace, perform, printing_commands, usage_path
Methods included from ApiHelpers
#check_for_error_message!, #no_token_exit!, #paging_params
Methods included from AwsHelpers
Methods included from AwsServices
#apigateway, #aws_lambda, #aws_options, #cfn, #dynamodb, #logs, #s3, #s3_resource, #sns, #sqs, #sts
Methods included from AwsServices::StackStatus
#lookup, #stack_exists?, #stack_in_progress?
Methods included from AwsServices::GlobalMemoist
Methods included from Actions
#load_generators, #load_tasks, #require_application!, #require_application_and_environment!, #set_application_directory!
Instance Method Details
#perform ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/jets/commands/deploy/deploy_command.rb', line 8 def perform extract_environment_option_from_argument require_application_and_environment! stack = Jets.project_namespace.color(:green) puts "Deploying stack #{stack} ..." return if @options[:noop] check_dev_mode validate_routes! # Delete existing rollback stack from previous bad minimal deploy delete_minimal_stack if minimal_rollback_complete? exit_unless_updateable! # Stack could be in a weird rollback state or in progress state if first_run? ship(stack_type: :minimal) end # Build code after the minimal stack because need s3 bucket for assets on_aws? and s3_base_url logic # TODO: possible deploy hook point: before_build Jets::Builders::CodeBuilder.new.build # TODO: possible deploy hook point: before_ship create_s3_event_buckets ship(stack_type: :full, s3_bucket: Jets.s3_bucket) end |