Class: Sprinkle::Installers::Rake
- Defined in:
- lib/sprinkle/installers/rake.rb
Overview
This installer runs a rake task.
Example Usage
The following example runs the command “rake spec” on the remote server. Specify an optional Rakefile with the :rakefile option.
package :spec do
rake 'spec', :file => "/var/setup/Rakefile"
end
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Instance Method Summary collapse
-
#initialize(parent, commands, options = {}, &block) ⇒ Rake
constructor
:nodoc:.
Methods inherited from Installer
#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api
Methods included from Sudo
#sudo?, #sudo_cmd, #sudo_stack
Methods included from Attributes
Constructor Details
#initialize(parent, commands, options = {}, &block) ⇒ Rake
:nodoc:
22 23 24 25 |
# File 'lib/sprinkle/installers/rake.rb', line 22 def initialize(parent, commands, = {}, &block) #:nodoc: super parent, , &block @commands = commands end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer