Class: Charmkit::Dependencies

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/charmkit/dependencies.rb

Constant Summary collapse

@@deps =
[]

Class Method Summary collapse

Class Method Details

.<<(o) ⇒ Object



17
18
19
20
# File 'lib/charmkit/dependencies.rb', line 17

def self.<<(o)
  @@deps << o
  self
end

.empty?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/charmkit/dependencies.rb', line 7

def self.empty?
  @@deps.empty?
end

.installObject



11
12
13
14
15
# File 'lib/charmkit/dependencies.rb', line 11

def self.install
  # TODO: Should be a dependency class with options for
  # installing groups, recommended packages, and snaps
  puts "Installing #{@@deps.join(' ')}"
end

.to_sObject



22
23
24
# File 'lib/charmkit/dependencies.rb', line 22

def self.to_s
  @@deps.join(' ')
end