Sha256: ed322bad516974cf2b7995b12f60131974d42d1c3c4904778111aa50cccc5524

Contents?: true

Size: 926 Bytes

Versions: 576

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

576 entries across 576 versions & 5 rubygems

Version Path
fastlane-2.94.0.beta.20180430050033 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180429050039 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180428050023 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180427050031 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180426050049 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180425050017 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.1 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.94.0.beta.20180424050050 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180423050019 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180422050034 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180421050012 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180420050021 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180419050008 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180418050020 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.92.1 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.93.0.beta.20180417050013 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.92.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.92.0.beta.20180416050023 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.92.0.beta.20180415050019 fastlane/lib/fastlane/configuration_helper.rb