Class: Fett::Repository
- Inherits:
-
Object
- Object
- Fett::Repository
- Defined in:
- lib/fett/repository.rb
Instance Attribute Summary collapse
-
#last_branch ⇒ Object
Returns the value of attribute last_branch.
-
#last_commit_url ⇒ Object
Returns the value of attribute last_commit_url.
-
#last_message ⇒ Object
Returns the value of attribute last_message.
-
#last_pusher ⇒ Object
Returns the value of attribute last_pusher.
Instance Method Summary collapse
- #==(another_repository) ⇒ Object
- #fullname ⇒ Object
-
#initialize(org, repository) ⇒ Repository
constructor
A new instance of Repository.
- #jenkins_name ⇒ Object
Constructor Details
#initialize(org, repository) ⇒ Repository
Returns a new instance of Repository.
6 7 8 9 |
# File 'lib/fett/repository.rb', line 6 def initialize(org, repository) @org = org @repository = repository end |
Instance Attribute Details
#last_branch ⇒ Object
Returns the value of attribute last_branch.
3 4 5 |
# File 'lib/fett/repository.rb', line 3 def last_branch @last_branch end |
#last_commit_url ⇒ Object
Returns the value of attribute last_commit_url.
3 4 5 |
# File 'lib/fett/repository.rb', line 3 def last_commit_url @last_commit_url end |
#last_message ⇒ Object
Returns the value of attribute last_message.
3 4 5 |
# File 'lib/fett/repository.rb', line 3 def end |
#last_pusher ⇒ Object
Returns the value of attribute last_pusher.
3 4 5 |
# File 'lib/fett/repository.rb', line 3 def last_pusher @last_pusher end |
Instance Method Details
#==(another_repository) ⇒ Object
19 20 21 |
# File 'lib/fett/repository.rb', line 19 def ==(another_repository) fullname == another_repository.fullname end |
#fullname ⇒ Object
15 16 17 |
# File 'lib/fett/repository.rb', line 15 def fullname "#{@org}/#{@repository}" end |
#jenkins_name ⇒ Object
11 12 13 |
# File 'lib/fett/repository.rb', line 11 def jenkins_name "#{@org}.#{@repository}" end |