Class: Actions::Staypuft::Host::PuppetRun

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/staypuft/host/puppet_run.rb

Instance Method Summary collapse

Instance Method Details

#humanized_inputObject



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

#runObject



25
26
27
# File 'app/lib/actions/staypuft/host/puppet_run.rb', line 25

def run
  ::Host.find(id).puppetrun!
end