Class: Spacesuit
- Inherits:
-
Object
- Object
- Spacesuit
- Defined in:
- lib/exogenesis/support/spacesuit.rb
Overview
A wrapper around a passenger
Instance Method Summary collapse
-
#clean ⇒ Object
Starts a clean-up process.
-
#down ⇒ Object
Uninstalls all packages and the package manager itself.
-
#initialize(passenger) ⇒ Spacesuit
constructor
A new instance of Spacesuit.
-
#up ⇒ Object
-
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.
-
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
#clean ⇒ Object
Starts a clean-up process
15 16 17 |
# File 'lib/exogenesis/support/spacesuit.rb', line 15 def clean wrap :clean end |
#down ⇒ Object
Uninstalls all packages and the package manager itself
20 21 22 |
# File 'lib/exogenesis/support/spacesuit.rb', line 20 def down wrap :down end |
#up ⇒ Object
-
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 |