Class: Cejo::Distro::CurrentPackager
- Inherits:
-
Object
- Object
- Cejo::Distro::CurrentPackager
- Defined in:
- lib/cejo/distro/current_packager.rb
Overview
Base
Instance Attribute Summary collapse
-
#utils ⇒ Object
readonly
Returns the value of attribute utils.
Instance Method Summary collapse
-
#initialize(utils) ⇒ CurrentPackager
constructor
A new instance of CurrentPackager.
- #packager(keys) ⇒ Object
Constructor Details
#initialize(utils) ⇒ CurrentPackager
Returns a new instance of CurrentPackager.
9 10 11 |
# File 'lib/cejo/distro/current_packager.rb', line 9 def initialize(utils) @utils = utils end |
Instance Attribute Details
#utils ⇒ Object (readonly)
Returns the value of attribute utils.
7 8 9 |
# File 'lib/cejo/distro/current_packager.rb', line 7 def utils @utils end |
Instance Method Details
#packager(keys) ⇒ Object
13 14 15 |
# File 'lib/cejo/distro/current_packager.rb', line 13 def packager(keys) keys.find { |exec| utils.which? exec }.to_sym end |