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



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

def initialize(branch_name)
  super()
  @branch_name = branch_name
end

Instance Attribute Details

#branch_nameObject (readonly)

Returns the value of attribute branch_name.



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

def branch_name
  @branch_name
end

Instance Method Details

#messageObject



49
50
51
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 49

def message
  format('No pull request associated with branch %s', branch_name)
end