In Files

  • bundler/cli/add.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Bundler::CLI::Add

Attributes

gems[R]
options[R]
version[R]

Public Class Methods

new(options, gems) click to toggle source
 
               # File bundler/cli/add.rb, line 7
def initialize(options, gems)
  @gems = gems
  @options = options
  @options[:group] = options[:group].split(",").map(&:strip) unless options[:group].nil?
  @version = options[:version].split(",").map(&:strip) unless options[:version].nil?
end
            

Public Instance Methods

run() click to toggle source
 
               # File bundler/cli/add.rb, line 14
def run
  validate_options!
  inject_dependencies
  perform_bundle_install unless options["skip-install"]
end