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, available_options, details, output, sh, step_text

Class Method Details

.authorObject



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

def self.author
  "champo"
end

.descriptionObject



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

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



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

def self.run(params)
  require 'terminal-notifier'

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