Class: JiraCommand::Command::Assign
- Inherits:
-
Thor
- Object
- Thor
- JiraCommand::Command::Assign
- Defined in:
- lib/jira_command/command/assign.rb
Instance Method Summary collapse
Instance Method Details
#clear(issue_key) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/jira_command/command/assign.rb', line 28 def clear(issue_key) config = JiraCommand::Config.new.read assign = JiraCommand::Jira::Assign.new(config) assign.unassigne(issue_key: issue_key) end |
#exec(issue_key) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jira_command/command/assign.rb', line 13 def exec(issue_key) config = JiraCommand::Config.new.read prompt_base = JiraCommand::Prompt::Base.new assignee = prompt_base.select_user( message: 'Who do you want to assign?', project_key: issue_key.split('-').first, refresh: !['refresh-user'].nil? ) assign = JiraCommand::Jira::Assign.new(config) assign.execute(issue_key: issue_key, assignee: assignee) end |