lib/vagrant-vbguest.rb in vagrant-vbguest-0.0.3 vs lib/vagrant-vbguest.rb in vagrant-vbguest-0.1.0

- old
+ new

@@ -1,17 +1,14 @@ require 'vagrant' require "vagrant-vbguest/config" +require "vagrant-vbguest/installer" require 'vagrant-vbguest/command' require 'vagrant-vbguest/middleware' -vbguest = Vagrant::Action::Builder.new do - use VagrantVbguest::Middleware -end +Vagrant.config_keys.register(:vbguest) { VagrantVbguest::Config } -Vagrant::Action.register(:vbguest, vbguest) +Vagrant.commands.register(:vbguest) { VagrantVbguest::Command } -[:start, :up, :reload].each do |level| - Vagrant::Action[level].use VagrantVbguest::Middleware, :run_level => level -end +Vagrant.actions[:start].use VagrantVbguest::Middleware # Add our custom translations to the load path I18n.load_path << File.expand_path("../../locales/en.yml", __FILE__)