Class: Sprinkle::Installers::Thor

Inherits:
Installer show all
Defined in:
lib/sprinkle/installers/thor.rb

Overview

Thor Installer

This installer runs a thor command.

Example Usage

The following example runs the command "thor spec" on the remote server.

package :spec do
  thor 'spec'
end

Specify a Thorfile with the :thorfile option.

package :spec, :thorfile => "/var/setup/Thorfile" do
  thor 'spec'
end

Instance Attribute Summary

Attributes inherited from Installer

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

Attributes included from Configurable

#delivery

Instance Method Summary (collapse)

Methods inherited from Installer

#process

Methods included from Configurable

#assert_delivery, #defaults, #method_missing, #option?

Constructor Details

- (Thor) initialize(parent, commands, options = {}, &block)

:nodoc:



23
24
25
26
# File 'lib/sprinkle/installers/thor.rb', line 23

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::Configurable