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,
lib/vagrant-notify/action/set_shared_folder.rb,
lib/vagrant-notify/action/notify_provisioning_status.rb
Defined Under Namespace
Classes: CheckProvider, InstallCommand, NotifyProvisioningStatus, 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/vagrant-notify/action.rb', line 38
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
|