Class: Fastlane::Actions::NotifyAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/notify.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, method_missing, other_action, output, return_value, sh, step_text

Class Method Details

.authorObject



16
17
18
# File 'lib/fastlane/actions/notify.rb', line 16

def self.author
  ["champo", "KrauseFx"]
end

.available_optionsObject



20
21
# File 'lib/fastlane/actions/notify.rb', line 20

def self.available_options
end

.descriptionObject



12
13
14
# File 'lib/fastlane/actions/notify.rb', line 12

def self.description
  "Shows a Mac OS X notification"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/fastlane/actions/notify.rb', line 23

def self.is_supported?(platform)
  Helper.mac?
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/fastlane/actions/notify.rb', line 4

def self.run(params)
  require 'terminal-notifier'
  UI.important("It's recommended to use the new 'notification' method instead of 'notify'")

  text = params.join(' ')
  TerminalNotifier.notify(text, title: 'fastlane')
end