class Ruboty::Jira::Actions::AssociateProject
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/jira/actions/associate_project.rb, line 5 def call associate_project replay_message rescue => e message.reply(e.message) end
Private Instance Methods
associate_project()
click to toggle source
# File lib/ruboty/jira/actions/associate_project.rb, line 14 def associate_project project = find_project(project_key) return if project.nil? projects[message.to] = { id: project.id } end
project_key()
click to toggle source
# File lib/ruboty/jira/actions/associate_project.rb, line 23 def project_key message[:project] end
replay_message()
click to toggle source
# File lib/ruboty/jira/actions/associate_project.rb, line 27 def replay_message if associate_project.nil? message.reply('The jira project is not found.') else message.reply('Registered.') end end