Class: Redcar::Application::QuitCommand
- Inherits:
- Command show all
- Defined in:
- plugins/application/lib/application/commands/application_commands.rb
Constant Summary
Constants included from Observable
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary (collapse)
Methods inherited from Command
active_changed, #environment, inherited, #inspect, norecord, record?, #run
Methods included from Sensitive
#active?, #sensitivities, #sensitivity_names, #sensitize
Methods included from Observable
#add_listener, #notify_listeners, #remove_listener
Instance Method Details
- (Object) execute
4 5 6 7 8 9 10 |
# File 'plugins/application/lib/application/commands/application_commands.rb', line 4 def execute Redcar.app.call_on_plugins(:quit_guard) do |guard| return unless guard end Project::Manager.open_projects.each {|pr| pr.close } Redcar.app.quit end |