Class: OS::Base
- Inherits:
-
Object
- Object
- OS::Base
- Defined in:
- lib/prebundle/os.rb
Instance Method Summary collapse
- #build_command(packages) ⇒ Object
- #command ⇒ Object
-
#initialize(gems) ⇒ Base
constructor
A new instance of Base.
- #packages ⇒ Object
Constructor Details
#initialize(gems) ⇒ Base
Returns a new instance of Base.
3 4 5 |
# File 'lib/prebundle/os.rb', line 3 def initialize(gems) @gems = gems end |
Instance Method Details
#build_command(packages) ⇒ Object
14 15 16 |
# File 'lib/prebundle/os.rb', line 14 def build_command(packages) raise "not impl" end |
#command ⇒ Object
9 10 11 12 13 |
# File 'lib/prebundle/os.rb', line 9 def command list = packages return if list.empty? build_command(list) end |
#packages ⇒ Object
6 7 8 |
# File 'lib/prebundle/os.rb', line 6 def packages [] end |