Class: OS::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/prebundle/os.rb

Direct Known Subclasses

FreeBSD, Linux

Instance Method Summary collapse

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

#commandObject



9
10
11
12
13
# File 'lib/prebundle/os.rb', line 9

def command
  list = packages
  return if list.empty?
  build_command(list)
end

#packagesObject



6
7
8
# File 'lib/prebundle/os.rb', line 6

def packages
  []
end