lib/vault-tools.rb in vault-tools-0.5.16 vs lib/vault-tools.rb in vault-tools-0.5.17
- old
+ new
@@ -45,10 +45,10 @@
end
end
def self.override_global_config
$stderr.puts "Set Config to Vault::Config..." if ENV['DEBUG']
- Object.send(:remove_const, :Config)
+ Object.send(:remove_const, :Config) if defined? Object::Config
Object.const_set(:Config, Vault::Config)
end
def self.load_shared_config
return unless Config.production?