class Sprinkle::Installers::Runner
The runner installer is great for running a simple command.
Example Usage¶ ↑
package :magic_beans do runner "make world" end
You can also pass multiple commands as arguments or an array.
package :magic_beans do runner "make world", "destroy world" runner [ "make world", "destroy world" ] end
Environment variables can be supplied throught the :env option.
package :magic_beans do runner "make world", :env => { :PATH => '/this/is/my/path:$PATH' } end
Public Instance Methods
noop()
click to toggle source
runs 'echo noop' on the remote host
# File lib/sprinkle/installers/runner.rb, line 35 def noop install Runner.new(self, "echo noop") end
runner(*cmds, &block)
click to toggle source
# File lib/sprinkle/installers/runner.rb, line 29 def runner(*cmds, &block) options = cmds.extract_options! install Runner.new(self, cmds, options, &block) end