Class: GemOnDemand::Checkout
- Inherits:
-
Object
- Object
- GemOnDemand::Checkout
- Defined in:
- lib/gem_on_demand/checkout.rb
Constant Summary collapse
- NotFound =
Class.new(Exception)
- NOT_FOUND =
"not-found"
- UPDATED_AT =
"updated_at"
- DIR =
File.("~/.gem-on-demand/cache")
- CACHE_DURATION =
for project tags
15 * 60
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #cache ⇒ Object
- #chdir(&block) ⇒ Object
-
#initialize(user, project) ⇒ Checkout
constructor
A new instance of Checkout.
Constructor Details
#initialize(user, project) ⇒ Checkout
Returns a new instance of Checkout.
11 12 13 14 15 |
# File 'lib/gem_on_demand/checkout.rb', line 11 def initialize(user, project) self.user = user self.project = project Utils.ensure_directory(dir) end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
9 10 11 |
# File 'lib/gem_on_demand/checkout.rb', line 9 def project @project end |
#user ⇒ Object
Returns the value of attribute user.
9 10 11 |
# File 'lib/gem_on_demand/checkout.rb', line 9 def user @user end |