Class: Salt::Formula::Git
- Extended by:
- Forwardable
- Defined in:
- lib/salt/formula/git.rb
Instance Attribute Summary collapse
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, dirname, args) ⇒ Git
constructor
A new instance of Git.
- #properties ⇒ Object
- #version ⇒ Object
Methods inherited from Base
#accept, #full_path, #status, #sync
Constructor Details
Instance Attribute Details
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
18 19 20 |
# File 'lib/salt/formula/git.rb', line 18 def repo @repo end |
Class Method Details
.implement?(name, args) ⇒ Boolean
9 10 11 12 13 |
# File 'lib/salt/formula/git.rb', line 9 def self.implement?(name, args) args.is_a? Hash and (args.has_key?(:git) or args.has_key?(:github)) rescue false end |
Instance Method Details
#properties ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/salt/formula/git.rb', line 31 def properties { :expected => @ref, :actual => (@repo.head || "(unresolvable)"), :type => :git, } end |
#version ⇒ Object
27 28 29 |
# File 'lib/salt/formula/git.rb', line 27 def version @ref end |