Class: Nucleon::Action::Plan::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/nucleon/action/plan/deploy.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.describeObject


Info



10
11
12
# File 'lib/nucleon/action/plan/deploy.rb', line 10

def self.describe
  super(:plan, :deploy, 700)
end

Instance Method Details

#argumentsObject




25
26
27
# File 'lib/nucleon/action/plan/deploy.rb', line 25

def arguments
  [:manifest]
end

#configureObject


Settings



17
18
19
20
21
# File 'lib/nucleon/action/plan/deploy.rb', line 17

def configure
  super do
    codes :deploy_failed
  end
end

#executeObject


Action operations



32
33
34
35
36
37
38
39
# File 'lib/nucleon/action/plan/deploy.rb', line 32

def execute
  super do
    info('start')
    unless plan.execute(:deploy)
      myself.status = code.deploy_failed
    end
  end
end