Class: Sprinkle::Actors::Local
Overview
Local Delivery Method
This actor implementation performs any given commands on your local system, as opposed to other implementations that generally run commands on a remote system via the network.
This is useful if you’d like to use Sprinkle to provision your local machine. To enable this actor, in your Sprinkle script specify the :local delivery mechanism.
deployment do
delivery :local
end
Note, your local machine will be assumed to be a member of all roles when applying policies
Instance Method Summary collapse
Instance Method Details
#process(name, commands, roles, suppress_and_return_failures = false) ⇒ Object
:nodoc:
20 21 22 |
# File 'lib/sprinkle/actors/local.rb', line 20 def process(name, commands, roles, suppress_and_return_failures = false) #:nodoc: commands.each { |command| system command } end |