lib/vagrant-skytap/action.rb in vagrant-skytap-0.2.5 vs lib/vagrant-skytap/action.rb in vagrant-skytap-0.2.6

- old
+ new

@@ -61,10 +61,11 @@ end # This action is called to terminate the remote machine. def self.action_destroy Vagrant::Action::Builder.new.tap do |b| + b.use ConfigValidate b.use action_fetch_environment b.use Call, ExistenceCheck do |env, b1| case existence_state = env[:result] when :missing_environment, :no_vms b1.use MessageNotCreated @@ -96,10 +97,11 @@ end # This action is called when `vagrant provision` is called. def self.action_provision Vagrant::Action::Builder.new.tap do |b| + b.use ConfigValidate b.use action_fetch_environment b.use Call, ExistenceCheck do |env, b1| case result = env[:result] when :missing_environment, :missing_vm, :no_vms b1.use MessageNotCreated @@ -226,10 +228,11 @@ # with a single REST call. def self.action_create Vagrant::Action::Builder.new.tap do |b| b.use HandleBox + b.use ConfigValidate b.use action_fetch_environment b.use ComposeEnvironment end end @@ -279,10 +282,11 @@ end end def self.action_reload Vagrant::Action::Builder.new.tap do |b| + b.use ConfigValidate b.use action_fetch_environment b.use Call, ExistenceCheck do |env, b1| case env[:result] when :missing_environment, :missing_vm, :no_vms b1.use MessageNotCreated @@ -298,10 +302,9 @@ end end def self.action_fetch_environment Vagrant::Action::Builder.new.tap do |b| - b.use ConfigValidate b.use InitializeAPIClient b.use FetchEnvironment end end