Compare commits

..

2 Commits

Author SHA1 Message Date
7c1eb87726 styme: format file (#1) 2023-04-24 17:13:44 +02:00
d4896b44f7 refactor: migrate is_set method in helper (#1) 2023-04-24 16:58:23 +02:00
2 changed files with 7 additions and 7 deletions

View File

@ -1,19 +1,13 @@
require 'fastlane/action'
require_relative '../helper/android_cd_helper'
def is_set variable
str_variable = variable
str_variable = variable.strip if variable.class.to_s == "String"
variable && !(str_variable.nil? || str_variable.empty?)
end
module Fastlane
module Actions
class AndroidCdAction < Action
def self.run(params)
# Check parameters
unless is_set(params[:beta_type])
unless Helper::AndroidCdHelper.is_set(params[:beta_type])
UI.error("Parameters beta_type cannot be null")
puts "Error on beta type parameter"
end

View File

@ -21,6 +21,12 @@ module Fastlane
puts "Erreur lors de la décompression du fichier GPG"
end
end
def self.is_set variable
str_variable = variable
str_variable = variable.strip if variable.class.to_s == "String"
variable && !(str_variable.nil? || str_variable.empty?)
end
end
end
end