class Fastlane::Actions::PutsAction
Public Class Methods
alias_used(action_alias, params)
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 41 def self.alias_used(action_alias, params) if !params.kind_of?(FastlaneCore::Configuration) || params[:message].nil? UI.important("#{action_alias} called, please use 'puts' instead!") end end
aliases()
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 47 def self.aliases ["println", "echo"] end
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 24 def self.available_options [ FastlaneCore::ConfigItem.new(key: :message, env_name: "FL_PUTS_MESSAGE", description: "Message to be printed out", optional: true) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 62 def self.category :misc end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/puts.rb, line 20 def self.description "Prints out the given text" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 56 def self.example_code [ 'puts "Hi there"' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 37 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/puts.rb, line 4 def self.run(params) # display text from the message param (most likely coming from Swift) # if called like `puts 'hi'` then params won't be a configuration item, so we have to check if params.kind_of?(FastlaneCore::Configuration) && params[:message] UI.message(params[:message]) return end # no parameter included in the call means treat this like a normal fastlane ruby call UI.message(params.join(' ')) end
step_text()
click to toggle source
We don't want to show this as step
# File fastlane/lib/fastlane/actions/puts.rb, line 52 def self.step_text nil end