Class: Waff::Commands::Open
- Defined in:
- lib/waff/commands/open.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#call(params) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/waff/commands/open.rb', line 7 def call params issue_number = params.shift || LocalRepository.current_issue_number issue_number || raise('No issue number given as argument or found as current branch') open_in_browser github_repo.issue_url(issue_number) end |