Module: Bundler::Multilock::Ext::CLI::ClassMethods

Defined in:
lib/bundler/multilock/ext/cli.rb

Instance Method Summary collapse

Instance Method Details

#instanceObject



8
9
10
11
12
13
# File 'lib/bundler/multilock/ext/cli.rb', line 8

def instance
  return @instance if instance_variable_defined?(:@instance)

  # this is a little icky, but there's no other way to determine which command was run
  @instance = ObjectSpace.each_object(::Bundler::CLI).first
end