Module: Bundler

Defined in:
lib/gel/compatibility/bundler.rb

Defined Under Namespace

Modules: Rubygems Classes: LockfileParser

Class Method Summary collapse

Class Method Details

.default_lockfileObject



12
13
14
# File 'lib/gel/compatibility/bundler.rb', line 12

def self.default_lockfile
  Pathname.new(Gel::Environment.lockfile_name)
end

.require(*groups) ⇒ Object



8
9
10
# File 'lib/gel/compatibility/bundler.rb', line 8

def self.require(*groups)
  Gel::Environment.require_groups(*groups)
end

.rubygemsObject



33
34
35
# File 'lib/gel/compatibility/bundler.rb', line 33

def self.rubygems
  Rubygems
end

.settingsObject



47
48
49
50
51
52
53
# File 'lib/gel/compatibility/bundler.rb', line 47

def self.settings
  if gemfile = Gel::Environment.gemfile
    { "gemfile" => gemfile.filename }
  else
    {}
  end
end

.setupObject



4
5
6
# File 'lib/gel/compatibility/bundler.rb', line 4

def self.setup
  Gel::Environment.activate(output: $stderr)
end

.with_clean_envObject



42
43
44
45
# File 'lib/gel/compatibility/bundler.rb', line 42

def self.with_clean_env
  # TODO
  yield
end

.with_friendly_errorsObject



1
2
3
# File 'lib/gel/compatibility/bundler/friendly_errors.rb', line 1

def Bundler.with_friendly_errors
  yield
end

.with_original_envObject



37
38
39
40
# File 'lib/gel/compatibility/bundler.rb', line 37

def self.with_original_env
  # TODO
  yield
end