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.96.0.beta.20180517050058 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180516050022 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180515050025 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180514050029 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180513050015 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180512050121 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180511050050 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.96.0.beta.20180510050112 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180509050014 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180508050130 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180507050125 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180506050030 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180505050019 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180504050050 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180503050136 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.95.0.beta.20180502050125 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180501050030 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180430050033 fastlane/lib/fastlane/configuration_helper.rb