lib/berkshelf/config.rb in berkshelf-6.1.0 vs lib/berkshelf/config.rb in berkshelf-6.1.1
- old
+ new
@@ -53,11 +53,11 @@
# Reload the currently instantiated Berkshelf configuration
#
# @return [Config]
def reload
@instance = nil
- self.instance
+ instance
end
# force proper X509 types from any configuration strings
#
# @return [Config]
@@ -74,15 +74,15 @@
# @param [Hash] options
# @see {Buff::Config::JSON}
def initialize(path = self.class.path, options = {})
super(path, options).tap do
# Deprecation
- if !self.vagrant.omnibus.enabled.nil?
+ if !vagrant.omnibus.enabled.nil?
Berkshelf.ui.warn "`vagrant.omnibus.enabled' is deprecated and " \
"will be removed in a future release. Please remove the " \
"`enabled' attribute from your Berkshelf config."
end
- if !self.vagrant.vm.box_url.nil?
+ if !vagrant.vm.box_url.nil?
Berkshelf.ui.warn "`vagrant.vm.box_url' is deprecated and " \
"will be removed in a future release. Please remove the " \
"`box_url' attribute from your Berkshelf config."
end
end