Sha256: de54dc1b9aaeb7a748c24862963c8c2fe5461df7398230724575af80c2146412

Contents?: true

Size: 930 Bytes

Versions: 23

Compression:

Stored size: 930 Bytes

Contents

module Fastlane
  class ConfigurationHelper
    def self.parse(action, params)
      first_element = (action.available_options || []).first

      if first_element and first_element.kind_of?(FastlaneCore::ConfigItem)
        # default use case
        return FastlaneCore::Configuration.create(action.available_options, params)
      elsif first_element
        UI.error("Old configuration format for action '#{action}'") if Helper.is_test?
        return params
      else

        # No parameters... we still need the configuration object array
        FastlaneCore::Configuration.create(action.available_options, {})

      end
    rescue => ex
      if action.respond_to?(:action_name)
        UI.error("You passed invalid parameters to '#{action.action_name}'.")
        UI.error("Check out the error below and available options by running `fastlane action #{action.action_name}`")
      end
      raise ex
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fastlane-2.79.0.beta.20180124010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.79.0.beta.20180123010002 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.78.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.78.0.beta.20180122010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.78.0.beta.20180121010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.78.0.beta.20180120010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.78.0.beta.20180119010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.77.1 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.77.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.77.0.beta.20180118010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.77.0.beta.20180117010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.1 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180116010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180115010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180114010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180113010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180112010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180111010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.76.0.beta.20180110010004 fastlane/lib/fastlane/configuration_helper.rb