Class: Fett::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/fett/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_branchObject

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_urlObject

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_messageObject

Returns the value of attribute last_message.



3
4
5
# File 'lib/fett/repository.rb', line 3

def last_message
  @last_message
end

#last_pusherObject

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

#fullnameObject



15
16
17
# File 'lib/fett/repository.rb', line 15

def fullname
  "#{@org}/#{@repository}"
end

#jenkins_nameObject



11
12
13
# File 'lib/fett/repository.rb', line 11

def jenkins_name
  "#{@org}.#{@repository}"
end