Sha256: 3a09ebe674bf511125de830e6764824bd965c3b3a44613e077df95e84261fe50

Contents?: true

Size: 928 Bytes

Versions: 460

Compression:

Stored size: 928 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

460 entries across 460 versions & 1 rubygems

Version Path
fastlane-2.65.0.beta.20171111010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.65.0.beta.20171110010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.65.0.beta.20171109010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.65.0.beta.20171108010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.65.0.beta.20171107010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171106010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171105010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171104010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171103010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171102010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.64.0.beta.20171101010004 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171031010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171030010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171029010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171028010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171027010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171026010003 fastlane/lib/fastlane/configuration_helper.rb
fastlane-2.63.0.beta.20171025010003 fastlane/lib/fastlane/configuration_helper.rb