lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.0.6 vs lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.0.7

- old
+ new

@@ -11,10 +11,14 @@ options = {} opts = OptionParser.new do |o| o.banner = "Usage: vagrant orchestrate push" o.separator "" + + o.on("--reboot", "Reboot a managed server after the provisioning step") do + options[:reboot] = true + end end # Parse the options argv = parse_options(opts) @@ -24,9 +28,10 @@ next end machine.action(:up, options) machine.action(:provision, options) + machine.action(:reload, options) if options[:reboot] machine.action(:destroy, options) end end end end