Class: Berkshelf::GithubLocation

Inherits:
GitLocation show all
Defined in:
lib/berkshelf/locations/github.rb

Instance Attribute Summary

Attributes inherited from GitLocation

#branch, #ref, #rel, #revision, #tag, #uri

Attributes inherited from BaseLocation

#dependency, #options

Instance Method Summary collapse

Methods inherited from GitLocation

#==, #cached_cookbook, #install, #installed?, #to_lock, #to_s

Methods included from Mixin::Git

#git

Methods inherited from BaseLocation

#cached_cookbook, #install, #installed?, #to_lock, #validate_cached!

Constructor Details

#initialize(dependency, options = {}) ⇒ GithubLocation

Returns a new instance of GithubLocation.



3
4
5
6
# File 'lib/berkshelf/locations/github.rb', line 3

def initialize(dependency, options = {})
  options[:git] = "git://github.com/#{options.delete(:github)}.git"
  super
end