Sha256: 4f1dd4429dea5ce001497ae5ba9d324c177b9dfebcbcfa8ca60b26d1d8168bd9

Contents?: true

Size: 744 Bytes

Versions: 627

Compression:

Stored size: 744 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)
        UI.user_error!("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

      def self.example_code
        [
          'say "I can speak"'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

627 entries across 627 versions & 1 rubygems

Version Path
fastlane-2.88.0.beta.20180327050037 fastlane/lib/fastlane/actions/say.rb
fastlane-2.88.0.beta.20180325050025 fastlane/lib/fastlane/actions/say.rb
fastlane-2.88.0.beta.20180324050059 fastlane/lib/fastlane/actions/say.rb
fastlane-2.87.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.87.0.beta.20180323050014 fastlane/lib/fastlane/actions/say.rb
fastlane-2.87.0.beta.20180322050115 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.2 fastlane/lib/fastlane/actions/say.rb
fastlane-2.87.0.beta.20180321050017 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.1 fastlane/lib/fastlane/actions/say.rb
fastlane-2.87.0.beta.20180320050108 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180319050058 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180318050106 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180317050040 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180316050051 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180315050105 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180314050053 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180313050023 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180312050111 fastlane/lib/fastlane/actions/say.rb
fastlane-2.86.0.beta.20180311050103 fastlane/lib/fastlane/actions/say.rb