Class: Sprinkle::Installers::Script
- 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
-
#script_file ⇒ Object
:nodoc:.
-
#script_path ⇒ Object
:nodoc:.
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Attributes included from Configurable
Instance Method Summary collapse
-
#initialize(parent, name, options = {}, &block) ⇒ Script
constructor
:nodoc:.
Methods inherited from Installer
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, ={}, &block) #:nodoc: super parent, , &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