Sha256: acc88fd74dae2b4f061070b94d7922c09f85b90120ade646ac876a07e87ff4ba

Contents?: true

Size: 858 Bytes

Versions: 575

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' method instead of 'notify'"
      end
    end
  end
end

Version data entries

575 entries across 575 versions & 1 rubygems

Version Path
fastlane-2.28.0.beta.20170420010017 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.28.0.beta.20170419010123 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.28.0.beta.20170418010021 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.28.0.beta.20170417010100 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.28.0.beta.20170416010028 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.28.0.beta.20170415010110 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170414010035 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170413010117 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170412010036 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170411010118 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170410010020 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170409010031 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.26.1 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170408010009 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.27.0.beta.20170407010056 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.26.0 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.26.0.beta.20170406010019 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.26.0.beta.20170405010026 fastlane/lib/fastlane/actions/notify.rb
fastlane-2.26.0.beta.20170404010022 fastlane/lib/fastlane/actions/notify.rb