Class: Bundler::CLI::Clean

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/cli/clean.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Clean

Returns a new instance of Clean.



7
8
9
# File 'lib/bundler/cli/clean.rb', line 7

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/bundler/cli/clean.rb', line 5

def options
  @options
end

Instance Method Details

#runObject



11
12
13
14
# File 'lib/bundler/cli/clean.rb', line 11

def run
  require_path_or_force unless options[:"dry-run"]
  Bundler.load.clean(options[:"dry-run"])
end