lib/vagrant-orchestrate/plugin.rb in vagrant-orchestrate-0.3.2 vs lib/vagrant-orchestrate/plugin.rb in vagrant-orchestrate-0.4.0
- old
+ new
@@ -1,6 +1,7 @@
require "vagrant-orchestrate/action/filtermanaged"
+require "vagrant-orchestrate/action/setcredentials"
begin
require "vagrant"
rescue LoadError
raise "The Vagrant Orchestrate plugin must be run within Vagrant."
@@ -33,21 +34,25 @@
Command::Root
end
action_hook(:orchestrate, :machine_action_up) do |hook|
hook.prepend Action::FilterManaged
+ hook.prepend Action::SetCredentials
end
action_hook(:orchestrate, :machine_action_provision) do |hook|
hook.prepend Action::FilterManaged
+ hook.prepend Action::SetCredentials
end
action_hook(:orchestrate, :machine_action_destroy) do |hook|
hook.prepend Action::FilterManaged
+ hook.prepend Action::SetCredentials
end
action_hook(:orchestrate, :machine_action_reload) do |hook|
hook.prepend Action::FilterManaged
+ hook.prepend Action::SetCredentials
end
# This initializes the internationalization strings.
def self.setup_i18n
I18n.load_path << File.expand_path("locales/en.yml", Orchestrate.source_root)