Class: Sprinkle::Installers::Deb

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

Overview

Deb Package Installer

The Deb installer installs deb packages sourced from a remote URL

Example Usage

Installing the magic_beans deb.

package :magic_beans do
  deb 'http://debs.example.com/magic_beans.deb'
end

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, packages, &block) ⇒ Deb

:nodoc:



18
19
20
21
22
# File 'lib/sprinkle/installers/deb.rb', line 18

def initialize(parent, packages, &block) #:nodoc:
  super parent, &block
  packages = [packages] unless packages.is_a? Array
  @packages = packages
end

Dynamic Method Handling

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

Instance Attribute Details

#packagesObject

:nodoc:



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

def packages
  @packages
end