docs: add some comments
This commit is contained in:
parent
385e7c05a9
commit
289802d9bc
@ -41,7 +41,9 @@ module Fastlane
|
|||||||
UI.user_error!("❌ Ios credentials doesn't exist")
|
UI.user_error!("❌ Ios credentials doesn't exist")
|
||||||
puts("json file doesn't exist")
|
puts("json file doesn't exist")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Check json fields
|
||||||
def self.check_required_fields(required_fields, json)
|
def self.check_required_fields(required_fields, json)
|
||||||
missing_fields = required_fields - json
|
missing_fields = required_fields - json
|
||||||
|
|
||||||
@ -50,6 +52,7 @@ module Fastlane
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Check if set of environment variables are defined
|
||||||
def self.check_environment_variables(variables)
|
def self.check_environment_variables(variables)
|
||||||
variables.each do |variable|
|
variables.each do |variable|
|
||||||
unless ENV.key?(variable)
|
unless ENV.key?(variable)
|
||||||
@ -58,6 +61,7 @@ module Fastlane
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Delete built files
|
||||||
def self.delete_artifacts(artifacts)
|
def self.delete_artifacts(artifacts)
|
||||||
artifacts.each do |file|
|
artifacts.each do |file|
|
||||||
File.delete(file) if File.exist?(file)
|
File.delete(file) if File.exist?(file)
|
||||||
@ -66,4 +70,3 @@ module Fastlane
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user