Class: R10K::Module::Git
- Inherits:
-
R10K::Module
- Object
- R10K::Module
- R10K::Module::Git
- Defined in:
- lib/r10k/module/git.rb
Instance Attribute Summary
Attributes inherited from R10K::Module
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, path, args) ⇒ Git
constructor
A new instance of Git.
- #sync!(options = {}) ⇒ Object
Methods inherited from R10K::Module
Constructor Details
#initialize(name, path, args) ⇒ Git
Returns a new instance of Git.
13 14 15 16 17 18 |
# File 'lib/r10k/module/git.rb', line 13 def initialize(name, path, args) super @remote = @args[:git] @ref = (@args[:ref] || 'master') end |
Class Method Details
.implements(name, args) ⇒ Object
7 8 9 10 11 |
# File 'lib/r10k/module/git.rb', line 7 def self.implements(name, args) args.is_a? Hash and args.has_key?(:git) rescue false end |