Class: RoastBeef::BzrPackage

Inherits:
Package
  • Object
show all
Defined in:
lib/roastbeef/scms/bzr_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

#checkoutObject

TODO: no idea if this works



4
5
6
# File 'lib/roastbeef/scms/bzr_package.rb', line 4

def checkout
  system "bzr clone #{repository} #{path}"
end

#updateObject



8
9
10
# File 'lib/roastbeef/scms/bzr_package.rb', line 8

def update
  system "cd #{path} && bzr pull"
end