Sha256: 23a47a2277bdd24955a3b3a3326ff76ac90356f1b3f7e4827e5c715f2b683c1b

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 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"
      end

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

      def self.available_options
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/notify.rb
fastlane-1.103.0 lib/fastlane/actions/notify.rb
fastlane-1.102.0 lib/fastlane/actions/notify.rb
fastlane-1.101.0 lib/fastlane/actions/notify.rb
fastlane-1.100.0 lib/fastlane/actions/notify.rb
fastlane-1.99.0 lib/fastlane/actions/notify.rb
fastlane-1.98.0 lib/fastlane/actions/notify.rb