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.26.0.beta.20170406010019 fastlane/lib/fastlane/actions/say.rb
fastlane-2.26.0.beta.20170405010026 fastlane/lib/fastlane/actions/say.rb
fastlane-2.26.0.beta.20170404010022 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0.beta.20170403010018 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0.beta.20170402010035 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0.beta.20170401010021 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0.beta.20170331010039 fastlane/lib/fastlane/actions/say.rb
fastlane-2.25.0.beta.20170330225747 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170330010023 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170329010023 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170328010037 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170327010009 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170326010023 fastlane/lib/fastlane/actions/say.rb
fastlane-2.24.0.beta.20170325010032 fastlane/lib/fastlane/actions/say.rb
fastlane-2.23.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.23.0.beta.20170322010036 fastlane/lib/fastlane/actions/say.rb
fastlane-2.22.0 fastlane/lib/fastlane/actions/say.rb
fastlane-2.22.0.beta.20170321010023 fastlane/lib/fastlane/actions/say.rb