Class: Sprinkle::Installers::Script

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

Overview

Script Installer

The Script installer runs a script file to install software

Example Usage

package :magic_beans do
  script '/some/path/to/install/script/for/magic_beans'
end

Constant Summary collapse

@@command_delimiter =
(RUBY_PLATFORM =~ /win32/ ? ' & ' : '; ')

Instance Attribute Summary collapse

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

#initialize(parent, name, options = {}, &block) ⇒ Script

:nodoc:



16
17
18
19
# File 'lib/sprinkle/installers/script.rb', line 16

def initialize(parent, name, options={}, &block) #:nodoc:
  super parent, options, &block
  @script_path, @script_file = File.split name
end

Dynamic Method Handling

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

Instance Attribute Details

#script_fileObject

:nodoc:



13
14
15
# File 'lib/sprinkle/installers/script.rb', line 13

def script_file
  @script_file
end

#script_pathObject

:nodoc:



13
14
15
# File 'lib/sprinkle/installers/script.rb', line 13

def script_path
  @script_path
end