Class: Waff::Commands::Pause

Inherits:
Command
  • Object
show all
Defined in:
lib/waff/commands/pause.rb

Instance Attribute Summary

Attributes inherited from Command

#params

Instance Method Summary collapse

Methods inherited from Command

call, #github_repo

Instance Method Details

#call(params) ⇒ Object



6
7
8
9
10
11
# File 'lib/waff/commands/pause.rb', line 6

def call params
  issue_number = params.shift
  issue = github_repo.get_issue issue_number

  issue.mark_ready!
end