Exception: NoPullRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rake_github/tasks/pull_requests/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch_name) ⇒ NoPullRequestError

Returns a new instance of NoPullRequestError.



42
43
44
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 42

def initialize(branch_name)
  @branch_name = branch_name
end

Instance Attribute Details

#branch_nameObject (readonly)

Returns the value of attribute branch_name.



41
42
43
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 41

def branch_name
  @branch_name
end

Instance Method Details

#messageObject



46
47
48
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 46

def message
  "No pull request associated with branch %s" % branch_name
end