lib/vagrant-plugin-bundler/config.rb in vagrant-plugin-bundler-0.1.0 vs lib/vagrant-plugin-bundler/config.rb in vagrant-plugin-bundler-0.1.1
- old
+ new
@@ -8,9 +8,13 @@
def initialize()
@dependencies = {}
end
+ def deps(&block)
+ instance_eval(&block)
+ end
+
def depend(name, version)
if @dependencies[name]
# raise early here because our hook has to run BEFORE validation
raise Errors::DuplicatePluginDefinitionError, :plugin => name
end