Class: Treet::Gitfarm
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
Attributes inherited from Farm
Class Method Summary collapse
Instance Method Summary collapse
- #add(hash, opts = {}) ⇒ Object
-
#initialize(opts) ⇒ Gitfarm
constructor
A new instance of Gitfarm.
- #repo(id, opts = {}) ⇒ Object
- #repos ⇒ Object
Methods inherited from Farm
#count, #export, #patch, #xrefs
Constructor Details
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
4 5 6 |
# File 'lib/treet/gitfarm.rb', line 4 def @author end |
Class Method Details
Instance Method Details
#add(hash, opts = {}) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/treet/gitfarm.rb', line 25 def add(hash, opts = {}) repo = super(hash, opts.merge(:author => )) if opts[:tag] repo.tag(opts[:tag]) end repo end |
#repo(id, opts = {}) ⇒ Object
21 22 23 |
# File 'lib/treet/gitfarm.rb', line 21 def repo(id, opts = {}) super(id, opts.merge(:author => )) end |
#repos ⇒ Object
17 18 19 |
# File 'lib/treet/gitfarm.rb', line 17 def repos super(:author => ) end |