Module: Vagrant::Notify::Action
- Defined in:
- lib/vagrant-notify/action.rb,
lib/vagrant-notify/action/stop_server.rb,
lib/vagrant-notify/action/prepare_data.rb,
lib/vagrant-notify/action/start_server.rb,
lib/vagrant-notify/action/check_provider.rb,
lib/vagrant-notify/action/install_command.rb,
lib/vagrant-notify/action/server_is_running.rb
Defined Under Namespace
Classes: CheckProvider, InstallCommand, PrepareData, ServerIsRunning, SetSharedFolder, StartServer, StopServer
Constant Summary
collapse
- Call =
Vagrant::Action::Builtin::Call
Class Method Summary
collapse
Class Method Details
.action_start_server ⇒ Object
.action_stop_server ⇒ Object
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/vagrant-notify/action.rb', line 49
def action_stop_server
Vagrant::Action::Builder.new.tap do |b|
b.use Call, CheckProvider do |env, b2|
next if !env[:result]
b2.use PrepareData
b2.use Call, ServerIsRunning do |env2, b3|
if env2[:result]
b3.use StopServer
else
end
end
end
end
end
|