Class: Fastlane::Helper::AwsSnsTopicHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/aws_sns_topic/helper/aws_sns_topic_helper.rb

Class Method Summary collapse

Class Method Details

.verify_params(params, required_params) ⇒ Object

class methods that you define here become available in your action as ‘Helper::AwsSnsTopicHelper.your_method`



12
13
14
15
16
# File 'lib/fastlane/plugin/aws_sns_topic/helper/aws_sns_topic_helper.rb', line 12

def self.verify_params(params, required_params)
  required_params.each do |required_param|
    UI.user_error!("You forgot to pass in the parameter: #{required_param}, pass using `#{required_param}: 'value-here'`") unless params[required_param].to_s.length > 0
  end
end