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.92.0.beta.20180414050023 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.91.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.91.0.beta.20180413050017 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180412050111 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180411050056 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180410050128 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180409050033 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180408050113 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180407050037 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180406050006 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180405050125 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180404050031 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.90.0.beta.20180403050108 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0.beta.20180402050042 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0.beta.20180401050120 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0.beta.20180331050023 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0.beta.20180330050046 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.89.0.beta.20180329050050 fastlane/lib/fastlane/configuration_helper.rb