lib/bootstrap/bundler.rb
# build Bundler::CLI.start arguments array from the given options hash
# @param option [Hash] the invoke! options hash
# @return [Array<String>] Bundler::CLI.start string arguments array
build Bundler::CLI.start arguments array from the given options hash
build Bundler :: CLI . start arguments array from the given options hash
def bundler_arguments(options = {})
      arguments = []
      if options[:install]
        arguments << "install"
        arguments << "--clean" if options[:clean]
        if options[:local]
          arguments << "--local"
          arguments << "--no-prune" 
        end
      elsif options[:update]
        arguments << "update"
        arguments << options[:update]
        arguments << "--local" if options[:local]
      elsif options[:clean]
        arguments << "clean"
      elsif options[:package]
        arguments << "package"
        arguments << "--all" if options[:all]
      end
      arguments << "--verbose" if options[:verbose]
      arguments.flatten
    end
def bundler_arguments ( options = { } ) arguments = [ ] if options [ :install ] arguments << "install" arguments << "--clean" if options [ :clean ] if options [ :local ] arguments << "--local" arguments << "--no-prune" end elsif options [ :update ] arguments << "update" arguments << options [ :update ] arguments << "--local" if options [ :local ] elsif options [ :clean ] arguments << "clean" elsif options [ :package ] arguments << "package" arguments << "--all" if options [ :all ] end arguments << "--verbose" if options [ :verbose ] arguments . flatten end
build Bundler::CLI.start arguments array from the given options hash
build Bundler :: CLI . start arguments array from the given options hash
# From bundler docs: Don't remove stale gems from the cache.
:CLI.start string arguments array
: CLI . start string arguments array
Array<String>
options
option
the invoke. options hash
the invoke . options hash