Class: Sprinkle::Installers::BsdPort
- Defined in:
- lib/sprinkle/installers/bsd_port.rb
Overview
The BSD Port installer installs OpenBSD and FreeBSD ports. Before usage, the ports sytem must be installed and ready on the target operating system.
Example Usage
Installing the magic_beans port.
package :magic_beans do
bsd_port 'magic/magic_beans'
end
Instance Attribute Summary collapse
-
#port ⇒ Object
:nodoc:.
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Instance Method Summary collapse
-
#initialize(parent, port, options = {}, &block) ⇒ BsdPort
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, port, options = {}, &block) ⇒ BsdPort
:nodoc:
24 25 26 27 |
# File 'lib/sprinkle/installers/bsd_port.rb', line 24 def initialize(parent, port, ={}, &block) #:nodoc: super parent, , &block @port = port end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer
Instance Attribute Details
#port ⇒ Object
:nodoc:
16 17 18 |
# File 'lib/sprinkle/installers/bsd_port.rb', line 16 def port @port end |