Sha256: b46998ad0fa8271106f616513905c67433a866196cc60ec445e9b72b90c56e2f

Contents?: true

Size: 899 Bytes

Versions: 3

Compression:

Stored size: 899 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
        nil
      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

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/actions/notify.rb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/actions/notify.rb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/actions/notify.rb