Sha256: 4a598d642f0d0ba4dcbd6d288c7604d89dade86924bcce2b401d5646e24f0536

Contents?: true

Size: 563 Bytes

Versions: 14

Compression:

Stored size: 563 Bytes

Contents

module Fastlane
  module Actions
    class SayAction < Action
      def self.run(params)
        text = params.join(' ') if params.kind_of?(Array) # that's usually the case
        text = params if params.kind_of?(String)
        raise "You can't call the `say` action as OneOff" unless text

        Actions.sh("say '#{text}'")
      end

      def self.description
        "This action speaks out loud the given text"
      end

      def self.is_supported?(platform)
        true
      end

      def self.author
        "KrauseFx"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fastlane-1.35.0 lib/fastlane/actions/say.rb
fastlane-1.34.0 lib/fastlane/actions/say.rb
fastlane-1.33.6 lib/fastlane/actions/say.rb
fastlane-1.33.5 lib/fastlane/actions/say.rb
fastlane-1.33.4 lib/fastlane/actions/say.rb
fastlane-1.33.3 lib/fastlane/actions/say.rb
fastlane-1.33.2 lib/fastlane/actions/say.rb
fastlane-1.33.1 lib/fastlane/actions/say.rb
fastlane-1.33.0 lib/fastlane/actions/say.rb
fastlane-1.32.4 lib/fastlane/actions/say.rb
fastlane-1.32.3 lib/fastlane/actions/say.rb
fastlane-1.32.2 lib/fastlane/actions/say.rb
fastlane-1.32.1 lib/fastlane/actions/say.rb
fastlane-1.32.0 lib/fastlane/actions/say.rb