Class: Fastlane::Actions::SayAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES
Class Method Summary
collapse
action_name, authors, available_options, details, lane_context, method_missing, other_action, output, return_value, sample_return_value, sh, step_text
Class Method Details
.author ⇒ Object
21
22
23
|
# File 'lib/fastlane/actions/say.rb', line 21
def self.author
"KrauseFx"
end
|
.category ⇒ Object
31
32
33
|
# File 'lib/fastlane/actions/say.rb', line 31
def self.category
:misc
end
|
.description ⇒ Object
13
14
15
|
# File 'lib/fastlane/actions/say.rb', line 13
def self.description
"This action speaks out loud the given text"
end
|
.example_code ⇒ Object
25
26
27
28
29
|
# File 'lib/fastlane/actions/say.rb', line 25
def self.example_code
[
'say "I can speak"'
]
end
|
.is_supported?(platform) ⇒ Boolean
17
18
19
|
# File 'lib/fastlane/actions/say.rb', line 17
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
10
11
|
# File 'lib/fastlane/actions/say.rb', line 4
def self.run(params)
text = params.join(' ') if params.kind_of?(Array) 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
|