fastlane/lib/fastlane/fast_file.rb in fastlane-2.96.1 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.97.0
- old
+ new
@@ -305,15 +305,12 @@
# Speak out loud
def say(value)
# Overwrite this, since there is already a 'say' method defined in the Ruby standard library
value ||= yield
- Actions.execute_action('say') do
- action_launched('say')
- return_value = Fastlane::Actions::SayAction.run([value])
- action_completed('say', status: FastlaneCore::ActionCompletionStatus::SUCCESS)
- return return_value
- end
+
+ value = { text: value } if value.kind_of?(String) || value.kind_of?(Array)
+ self.runner.trigger_action_by_name(:say, nil, false, value)
end
def puts(value)
# Overwrite this, since there is already a 'puts' method defined in the Ruby standard library
value ||= yield if block_given?