Class: Fastlane::Actions::NotifyAction

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

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorObject



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

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

.available_optionsObject



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

def self.available_options
end

.categoryObject



31
32
33
# File 'fastlane/lib/fastlane/actions/notify.rb', line 31

def self.category
  :deprecated
end

.deprecated_notesObject



35
36
37
# File 'fastlane/lib/fastlane/actions/notify.rb', line 35

def self.deprecated_notes
  "It's recommended to use the new `notification` action instead of `notify`"
end

.descriptionObject



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

def self.description
  "Shows a macOS notification - use `notification` instead"
end

.example_codeObject



27
28
29
# File 'fastlane/lib/fastlane/actions/notify.rb', line 27

def self.example_code
  nil
end

.is_supported?(platform) ⇒ Boolean

Returns:



23
24
25
# File 'fastlane/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 'fastlane/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