Module: Capistrano::DataPlaneApi::Deploy

Defined in:
lib/capistrano/data_plane_api/deploy.rb,
lib/capistrano/data_plane_api/deploy/args.rb,
lib/capistrano/data_plane_api/deploy/group.rb,
lib/capistrano/data_plane_api/deploy/helper.rb,
lib/capistrano/data_plane_api/deploy/server_stats.rb,
lib/capistrano/data_plane_api/deploy/deployment_stats.rb

Overview

Contains code used in the deployment script.

Defined Under Namespace

Modules: Helper Classes: Args, DeploymentStats, Group, ServerStats

Class Method Summary collapse

Class Method Details

.callObject

Returns when the deployment is over. Aborts the program (exits with code 1) when the deployment has failed.

: -> void



15
16
17
18
# File 'lib/capistrano/data_plane_api/deploy.rb', line 15

def call
  stats = call!
  abort if stats.state == :failed
end

.call!Object

Returns when the deployment is over. Returns the final state of the deployment as a symbol ‘:failed`, `:pending` or `:success`

: -> DeploymentStats



24
25
26
27
28
29
# File 'lib/capistrano/data_plane_api/deploy.rb', line 24

def call!
  args = Args.parse
  puts COLORS.bold.blue('Running the deployment script')

  Group.call(args)
end