Sha256: d487719dda9cba5d8bccb15803541716a0c0b066b9c43f3e6bb919e2af2ab272
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
# A wrapper around a passenger class Spacesuit def initialize(passenger) @passenger = passenger end # * 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 def up wrap :up end # Starts a clean-up process def clean wrap :clean end # Uninstalls all packages and the package manager itself def down wrap :down end private def wrap(task_name) return unless @passenger.respond_to? task_name @passenger.start_section(@passenger.class.to_s, @passenger.class.emoji_name) @passenger.public_send(task_name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exogenesis-1.0.0 | lib/exogenesis/support/spacesuit.rb |
exogenesis-0.2.0 | lib/exogenesis/support/spacesuit.rb |