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.81.0.beta.20180203010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.81.0.beta.20180202010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.80.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.80.0.beta.20180201010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.80.0.beta.20180131010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.80.0.beta.20180130010002 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180129010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180128010002 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180127010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180126010002 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180125010002 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180124010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.79.0.beta.20180123010002 fastlane/lib/fastlane/actions/say.rb
fastlane-2.78.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.78.0.beta.20180122010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.78.0.beta.20180121010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.78.0.beta.20180120010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.78.0.beta.20180119010003 fastlane/lib/fastlane/actions/say.rb
fastlane-2.77.1 fastlane/lib/fastlane/actions/say.rb