Class: Fastlane::Actions::MailgunAction
- Inherits:
-
Fastlane::Action
- Object
- Fastlane::Action
- Fastlane::Actions::MailgunAction
- Defined in:
- lib/fastlane/actions/mailgun.rb
Class Method Summary collapse
- .author ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(options) ⇒ Object
Methods inherited from Fastlane::Action
action_name, details, output, sh
Class Method Details
.author ⇒ Object
60 61 62 |
# File 'lib/fastlane/actions/mailgun.rb', line 60 def self. "thiagolioy" end |
.available_options ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/fastlane/actions/mailgun.rb', line 27 def self. [ FastlaneCore::ConfigItem.new(key: :mailgun_sandbox_domain, env_name: "MAILGUN_SANDBOX_DOMAIN", description: "Mailgun sandbox domain for your mail"), FastlaneCore::ConfigItem.new(key: :mailgun_sandbox_postmaster, env_name: "MAILGUN_SANDBOX_POSTMASTER", description: "Mailgun sandbox domain postmaster for your mail"), FastlaneCore::ConfigItem.new(key: :mailgun_apikey, env_name: "MAILGUN_APIKEY", description: "Mailgun apikey for your mail"), FastlaneCore::ConfigItem.new(key: :to, env_name: "MAILGUN_TO", description: "Destination of your mail"), FastlaneCore::ConfigItem.new(key: :message, env_name: "MAILGUN_MESSAGE", description: "Message of your mail"), FastlaneCore::ConfigItem.new(key: :subject, env_name: "MAILGUN_SUBJECT", description: "Subject of your mail", optional: true, is_string: true, default_value: "fastlane build"), FastlaneCore::ConfigItem.new(key: :success, env_name: "MAILGUN_SUCCESS", description: "Was this build successful? (true/false)", optional: true, default_value: true, is_string: false) ] end |
.description ⇒ Object
23 24 25 |
# File 'lib/fastlane/actions/mailgun.rb', line 23 def self.description "Send a success/error message to an email group" end |
.is_supported?(platform) ⇒ Boolean
5 6 7 |
# File 'lib/fastlane/actions/mailgun.rb', line 5 def self.is_supported?(platform) true end |
.run(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fastlane/actions/mailgun.rb', line 9 def self.run() require 'rest_client' handle_exceptions() mailgunit([:mailgun_apikey], [:mailgun_sandbox_domain], [:mailgun_sandbox_postmaster], [:to], [:subject], compose_mail([:message],[:success])) end |