Class: Bundler::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/patches/bundler.rb

Overview

Patch to prevent Bundler to save a .bundle/config file in the root of the application

Instance Method Summary collapse

Instance Method Details

#set_key(key, value, hash, file) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/logstash/patches/bundler.rb', line 16

def set_key(key, value, hash, file)
  key = key_for(key)

  unless hash[key] == value
    hash[key] = value
    hash.delete(key) if value.nil?
  end

  value
end