Class: RoastBeef::GitPackage
- Defined in:
- lib/roastbeef/scms/git_package.rb
Instance Attribute Summary
Attributes inherited from Package
#author, #build, #description, #name, #prereqs, #remove, #repository, #url
Instance Method Summary collapse
Methods inherited from Package
all, #checked_out?, find, #initialize, #inspect, #install, #path, #to_s, #truncated_description, #unremovable?
Constructor Details
This class inherits a constructor from RoastBeef::Package
Instance Method Details
#checkout ⇒ Object
3 4 5 |
# File 'lib/roastbeef/scms/git_package.rb', line 3 def checkout system "git clone #{repository} #{path}" end |
#update ⇒ Object
7 8 9 |
# File 'lib/roastbeef/scms/git_package.rb', line 7 def update system "cd #{path} && git pull" end |