Sha256: 676d158f4cf6b2ca430d27739ca32c5bd40126beaf9f02d58514e43e7b98a9fb

Contents?: true

Size: 858 Bytes

Versions: 23

Compression:

Stored size: 858 Bytes

Contents

module Fastlane
  module Actions
    class NotifyAction < Action
      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

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

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

      def self.available_options
      end

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

      def self.example_code
        []
      end

      def self.category
        :deprecated
      end

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fastlane-2.96.0.beta.20180516050022 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180515050025 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180514050029 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180513050015 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180512050121 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180511050050 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.96.0.beta.20180510050112 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180509050014 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180508050130 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180507050125 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180506050030 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180505050019 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180504050050 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180503050136 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.95.0.beta.20180502050125 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.94.0 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.94.0.beta.20180501050030 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.94.0.beta.20180430050033 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.94.0.beta.20180429050039 fastlane/lib/fastlane/actions/notify.rb