Class: Capistrano::Dingtalk::Messaging::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/capistrano/dingtalk/messaging/text.rb

Instance Method Summary collapse

Methods inherited from Base

#build_at_dict, #build_msg_json, #initialize, #message_for, #message_for_failed, #message_for_reverted, #message_for_reverting, #message_for_updated, #message_for_updating

Methods included from Helpers

#application, #branch, #deployer, #elapsed_time, #stage, #username

Constructor Details

This class inherits a constructor from Capistrano::Dingtalk::Messaging::Base

Instance Method Details

#build_hash(action) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/capistrano/dingtalk/messaging/text.rb', line 5

def build_hash(action)
  {
    msgtype: "text",
    text: {
      content: message_for(action)
    }
  }
end