Class: Sprinkle::Installers::Rake

Inherits:
Installer show all
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

Thor

Instance Attribute Summary

Attributes inherited from Installer

#delivery, #options, #package, #post, #pre

Instance Method Summary collapse

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

#defaults, #set_defaults

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, options = {}, &block) #:nodoc:
  super parent, options, &block
  @commands = commands
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer