Class: Spacesuit

Inherits:
Object
  • Object
show all
Defined in:
lib/exogenesis/support/spacesuit.rb

Overview

A wrapper around a passenger

Instance Method Summary collapse

Constructor Details

#initialize(passenger) ⇒ Spacesuit

Returns a new instance of Spacesuit.



3
4
5
# File 'lib/exogenesis/support/spacesuit.rb', line 3

def initialize(passenger)
  @passenger = passenger
end

Instance Method Details

#cleanObject

Starts a clean-up process



15
16
17
# File 'lib/exogenesis/support/spacesuit.rb', line 15

def clean
  wrap :clean
end

#downObject

Uninstalls all packages and the package manager itself



20
21
22
# File 'lib/exogenesis/support/spacesuit.rb', line 20

def down
  wrap :down
end

#upObject

  • Installs the package manager itself

  • Installs all packages (the list has to be provided in the initialize method)

  • Updates the package manager itself and all packages



10
11
12
# File 'lib/exogenesis/support/spacesuit.rb', line 10

def up
  wrap :up
end