Class: Nucleon::Action::Plan::Destroy
- Inherits:
-
Object
- Object
- Nucleon::Action::Plan::Destroy
- Defined in:
- lib/nucleon/action/plan/destroy.rb
Class Method Summary collapse
-
.describe ⇒ Object
—————————————————————————– Info.
Instance Method Summary collapse
-
#arguments ⇒ Object
—.
-
#configure ⇒ Object
—————————————————————————– Settings.
-
#execute ⇒ Object
—————————————————————————– Action operations.
Class Method Details
.describe ⇒ Object
Info
10 11 12 |
# File 'lib/nucleon/action/plan/destroy.rb', line 10 def self.describe super(:plan, :destroy, 600) end |
Instance Method Details
#arguments ⇒ Object
25 26 27 |
# File 'lib/nucleon/action/plan/destroy.rb', line 25 def arguments [:manifest] end |
#configure ⇒ Object
Settings
17 18 19 20 21 |
# File 'lib/nucleon/action/plan/destroy.rb', line 17 def configure super do codes :destroy_failed end end |
#execute ⇒ Object
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 |