Sha256: ed322bad516974cf2b7995b12f60131974d42d1c3c4904778111aa50cccc5524

Contents?: true

Size: 926 Bytes

Versions: 575

Compression:

Stored size: 926 Bytes

Contents

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

      if first_element && 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.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

575 entries across 575 versions & 5 rubygems

Version Path
fastlane-2.113.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190107200010 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190106200016 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190105200036 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190104200013 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190103200013 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190102200016 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20190101200013 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181231200027 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181230200014 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181229200101 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181228200027 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181227200058 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181226200116 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181225200026 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181224200038 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181223200038 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181222200027 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181221200014 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.113.0.beta.20181220200101 fastlane/lib/fastlane/configuration_helper.rb