Class: Actions::Staypuft::Host::PuppetRun
- Inherits:
-
Base
- Object
- Base
- Actions::Staypuft::Host::PuppetRun
- Defined in:
- app/lib/actions/staypuft/host/puppet_run.rb
Instance Method Summary collapse
Instance Method Details
#humanized_input ⇒ Object
29 30 31 |
# File 'app/lib/actions/staypuft/host/puppet_run.rb', line 29 def humanized_input input[:name] end |
#plan(host) ⇒ Object
20 21 22 23 |
# File 'app/lib/actions/staypuft/host/puppet_run.rb', line 20 def plan(host) Type! host, ::Host plan_self id: host.id, name: host.name end |
#run ⇒ Object
25 26 27 |
# File 'app/lib/actions/staypuft/host/puppet_run.rb', line 25 def run ::Host.find(id).puppetrun! end |