Class: AgileNotifier::SCM::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/agile_notifier/scm.rb

Direct Known Subclasses

Git::Repository, Github::Repository

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Repository

Returns a new instance of Repository.



26
27
28
29
30
# File 'lib/agile_notifier/scm.rb', line 26

def initialize(args)
  @user = args[:user]
  @repo = args[:repo]
  @url = args[:url]
end

Instance Attribute Details

#repoObject

Returns the value of attribute repo.



24
25
26
# File 'lib/agile_notifier/scm.rb', line 24

def repo
  @repo
end

#urlObject

Returns the value of attribute url.



24
25
26
# File 'lib/agile_notifier/scm.rb', line 24

def url
  @url
end

#userObject

Returns the value of attribute user.



24
25
26
# File 'lib/agile_notifier/scm.rb', line 24

def user
  @user
end

Instance Method Details

#get_commit(revision) ⇒ Object

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/agile_notifier/scm.rb', line 32

def get_commit(revision)
  raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
end

#get_committer_of_a_commit(revision) ⇒ Object

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/agile_notifier/scm.rb', line 36

def get_committer_of_a_commit(revision)
  raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
end