Class: Nucleon::Action::Plan::Destroy

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.describeObject


Info



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

def self.describe
  super(:plan, :destroy, 600)
end

Instance Method Details

#argumentsObject




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

def arguments
  [:manifest]
end

#configureObject


Settings



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

def configure
  super do
    codes :destroy_failed
  end
end

#executeObject


Action operations



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

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