Sha256: 972b1d8ff40d6aa9799399c798bbd2cd5063671fd6c1aaf5ca0be44fc9aec84f

Contents?: true

Size: 745 Bytes

Versions: 7

Compression:

Stored size: 745 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

7 entries across 7 versions & 1 rubygems

Version Path
fastlane-2.96.1 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0.beta.20180521050117 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0.beta.20180520050019 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0.beta.20180519050103 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0.beta.20180518050116 fastlane/lib/fastlane/actions/say.rb
fastlane-2.96.0.beta.20180517050058 fastlane/lib/fastlane/actions/say.rb