method

_cleanup_options_and_set

ruby latest stable - Class: Bundler::Thor::Actions

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

_cleanup_options_and_set(options, key)
protected

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/actions.rb, line 310
    def _cleanup_options_and_set(options, key) #:nodoc:
      case options
      when Array
        %(--force -f --skip -s).each { |i| options.delete(i) }
        options << "--#{key}"
      when Hash
        [:force, :skip, "force", "skip"].each { |i| options.delete(i) }
        options.merge!(key => true)
      end
    end