class Fastlane::Actions::SayAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 21 def self.available_options [ FastlaneCore::ConfigItem.new(key: :text, description: 'Text to be spoken out loud (as string or array of strings)', optional: false, type: Array), FastlaneCore::ConfigItem.new(key: :mute, env_name: "SAY_MUTE", description: 'If say should be muted with text printed out', optional: false, type: Boolean, default_value: false) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 50 def self.category :misc end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 17 def self.description "This action speaks the given text out loud" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 44 def self.example_code [ 'say("I can speak")' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 36 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/say.rb, line 4 def self.run(params) text = params[:text] text = text.join(' ') text = text.tr("'", '"') if params[:mute] UI.message(text) return text else Actions.sh("say '#{text}'") end end