Class: Filament::SCM::CompoundSCM
- Inherits:
-
Object
- Object
- Filament::SCM::CompoundSCM
- Defined in:
- lib/filament/package.rb
Instance Method Summary collapse
- #<<(scm) ⇒ Object
- #commit(msg) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize ⇒ CompoundSCM
constructor
A new instance of CompoundSCM.
- #status ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize ⇒ CompoundSCM
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
61 62 63 |
# File 'lib/filament/package.rb', line 61 def empty? return @scms.empty? end |
#status ⇒ Object
53 54 55 |
# File 'lib/filament/package.rb', line 53 def status @scms.each {|s| s.status} end |
#update ⇒ Object
49 50 51 |
# File 'lib/filament/package.rb', line 49 def update @scms.each {|s| s.update} end |