Sha256: ae21bed28439bb12506ab6481cc29d09441a6ce3129ad3c48fc6aaf14fcb8f20

Contents?: true

Size: 596 Bytes

Versions: 41

Compression:

Stored size: 596 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
        text = text.tr("'", '"')

        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

41 entries across 41 versions & 1 rubygems

Version Path
fastlane-1.68.0 lib/fastlane/actions/say.rb
fastlane-1.67.0 lib/fastlane/actions/say.rb
fastlane-1.66.0 lib/fastlane/actions/say.rb
fastlane-1.65.0 lib/fastlane/actions/say.rb
fastlane-1.64.0 lib/fastlane/actions/say.rb
fastlane-1.63.1 lib/fastlane/actions/say.rb
fastlane-1.63.0 lib/fastlane/actions/say.rb
fastlane-1.62.0 lib/fastlane/actions/say.rb
fastlane-1.61.0 lib/fastlane/actions/say.rb
fastlane-1.60.0 lib/fastlane/actions/say.rb
fastlane-1.59.0 lib/fastlane/actions/say.rb
fastlane-1.58.0 lib/fastlane/actions/say.rb
fastlane-1.57.0 lib/fastlane/actions/say.rb
fastlane-1.56.0 lib/fastlane/actions/say.rb
fastlane-1.55.0 lib/fastlane/actions/say.rb
fastlane-1.54.0 lib/fastlane/actions/say.rb
fastlane-1.53.0 lib/fastlane/actions/say.rb
fastlane-1.52.0 lib/fastlane/actions/say.rb
fastlane-1.51.0 lib/fastlane/actions/say.rb
fastlane-1.50.0 lib/fastlane/actions/say.rb