Class: Pot::Installers::Deb

Inherits:
Pot::Installer show all
Defined in:
lib/pot/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 Pot::Installer

#actor, #options, #package, #post, #pre

Instance Method Summary collapse

Methods inherited from Pot::Installer

#archives, #builds, #commands, #prefix, #process

Constructor Details

#initialize(parent, packages, &block) ⇒ Deb

:nodoc:



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

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

Instance Attribute Details

#packagesObject

:nodoc:



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

def packages
  @packages
end