Class: MintPress::SlackBot::Bot
- Inherits:
-
Object
- Object
- MintPress::SlackBot::Bot
- Includes:
- MintLogger
- Defined in:
- src/mintpress-slackbot/lib/mintpress-slackbot/slackbot/slackbot.rb
Properties (Read/Write)
Properties (Read Only)
Constant Summary
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Instance Method Summary collapse
- #action_handler(params) ⇒ Object
-
#approval?(params) ⇒ Boolean
Request: "team_id"=>"T0WPYQTH6", "team_domain"=>"limepoint", "channel_id"=>"GMBEPFWPL", "channel_name"=>"privategroup", "user_id"=>"U14BWB02F", "user_name"=>"gstankovski", "command"=>"/mintpress", "text"=>"trigger 432630e8-7828-4a72-aca9-f4e2e9edf65b destroy", "response_url"=>"https://hooks.slack.com/commands/T0WPYQTH6/737870972133/jIBiWNmlWjXxlrdtRuJo78dX", "trigger_id"=>"737864386800.30814843584.7acdf3e0ec74e8d07d9ee47800e30def" Determine whether approval is required for an action for /mintpress slash command.
- #environment(params) ⇒ Object
- #ephemeral_message(text: nil, blocks: nil, attachments: nil) ⇒ Object
-
#get_emoji(state) ⇒ Object
Return Slack emoji based on state.
- #handle_exception!(params) ⇒ Object
- #help(params) ⇒ Object
-
#initialize(client) ⇒ Bot
constructor
A new instance of Bot.
- #launch(provider:, environment:, item:, params:) ⇒ Object
-
#launch_dialog(params) ⇒ Object
Approval requests for /mintpress launch commands that require approval.
- #node(params) ⇒ Object
- #perform_action(params) ⇒ Object
-
#request_approval(params) ⇒ Object
Request: "team_id"=>"T0WPYQTH6", "team_domain"=>"limepoint", "channel_id"=>"GMBEPFWPL", "channel_name"=>"privategroup", "user_id"=>"U14BWB02F", "user_name"=>"gstankovski", "command"=>"/mintpress", "text"=>"trigger 432630e8-7828-4a72-aca9-f4e2e9edf65b destroy", "response_url"=>"https://hooks.slack.com/commands/T0WPYQTH6/737870972133/jIBiWNmlWjXxlrdtRuJo78dX", "trigger_id"=>"737864386800.30814843584.7acdf3e0ec74e8d07d9ee47800e30def" Approval requests for /mintpress slash commands that require approval.
-
#status(params) ⇒ Object
Show status of MintPress Service Catalog Item.
- #summary(params) ⇒ Object
- #trigger(uuid:, action:, params:) ⇒ Object
-
#trigger_dialog(params) ⇒ Object
Approval requests for /mintpress action commands that require approval.
- #update_slack(params, msg) ⇒ Object
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Constructor Details
#initialize(client) ⇒ Bot
Returns a new instance of Bot.
Instance Method Details
#action_handler(params) ⇒ Object
#approval?(params) ⇒ Boolean
Request: "team_id"=>"T0WPYQTH6", "team_domain"=>"limepoint", "channel_id"=>"GMBEPFWPL", "channel_name"=>"privategroup", "user_id"=>"U14BWB02F", "user_name"=>"gstankovski", "command"=>"/mintpress", "text"=>"trigger 432630e8-7828-4a72-aca9-f4e2e9edf65b destroy", "response_url"=>"https://hooks.slack.com/commands/T0WPYQTH6/737870972133/jIBiWNmlWjXxlrdtRuJo78dX", "trigger_id"=>"737864386800.30814843584.7acdf3e0ec74e8d07d9ee47800e30def"
Determine whether approval is required for an action for /mintpress slash command
#environment(params) ⇒ Object
#ephemeral_message(text: nil, blocks: nil, attachments: nil) ⇒ Object
#get_emoji(state) ⇒ Object
Return Slack emoji based on state
#handle_exception!(params) ⇒ Object
#help(params) ⇒ Object
#launch(provider:, environment:, item:, params:) ⇒ Object
#launch_dialog(params) ⇒ Object
Approval requests for /mintpress launch commands that require approval
#node(params) ⇒ Object
#perform_action(params) ⇒ Object
#request_approval(params) ⇒ Object
Request: "team_id"=>"T0WPYQTH6", "team_domain"=>"limepoint", "channel_id"=>"GMBEPFWPL", "channel_name"=>"privategroup", "user_id"=>"U14BWB02F", "user_name"=>"gstankovski", "command"=>"/mintpress", "text"=>"trigger 432630e8-7828-4a72-aca9-f4e2e9edf65b destroy", "response_url"=>"https://hooks.slack.com/commands/T0WPYQTH6/737870972133/jIBiWNmlWjXxlrdtRuJo78dX", "trigger_id"=>"737864386800.30814843584.7acdf3e0ec74e8d07d9ee47800e30def"
Approval requests for /mintpress slash commands that require approval
#status(params) ⇒ Object
Show status of MintPress Service Catalog Item
#summary(params) ⇒ Object
#trigger(uuid:, action:, params:) ⇒ Object
#trigger_dialog(params) ⇒ Object
Approval requests for /mintpress action commands that require approval