Class: Filament::SCM::CompoundSCM

Inherits:
Object
  • Object
show all
Defined in:
lib/filament/package.rb

Instance Method Summary collapse

Constructor Details

#initializeCompoundSCM

Returns a new instance of CompoundSCM.



41
42
43
# File 'lib/filament/package.rb', line 41

def initialize
  @scms = []
end

Instance Method Details

#<<(scm) ⇒ Object



45
46
47
# File 'lib/filament/package.rb', line 45

def <<(scm)
  @scms << scm
end

#commit(msg) ⇒ Object



57
58
59
# File 'lib/filament/package.rb', line 57

def commit(msg)
  @scms.each {|s| s.commit(msg)}
end

#empty?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/filament/package.rb', line 61

def empty?
  return @scms.empty?
end

#statusObject



53
54
55
# File 'lib/filament/package.rb', line 53

def status
  @scms.each {|s| s.status}
end

#updateObject



49
50
51
# File 'lib/filament/package.rb', line 49

def update
  @scms.each {|s| s.update}
end