Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (24 sloc) 0.781 kb
e90332d Eloy Durán If the user wants it, we'll add the configuration needed by passenger to...
alloy authored
1 module SharedPassengerBehaviour
79c4629 Eloy Durán Make sure that hitting OK in the alert will run the passenger_config_ins...
alloy authored
2 include OSX
3
dfcf194 Eloy Durán Made SharedPassengerBehaviour::execute use the SecurityHelper. Broken bu...
alloy authored
4 def execute(command, *args)
18dc143 Eloy Durán At least show an alert that something went wrong if execution fails.
alloy authored
5 if OSX::SecurityHelper.sharedInstance.executeCommand_withArgs(command, args) == 0
6 alert = OSX::NSAlert.alloc.init
84522ba Eloy Durán Updated text in alert that's showed when #execute fails.
alloy authored
7 alert.messageText = 'Your changes couldn’t be saved'
8 alert.informativeText = "See the Console log for details.\nYou can file a bug report at:\nhttp://fingertips.lighthouseapp.com/projects/13022"
18dc143 Eloy Durán At least show an alert that something went wrong if execution fails.
alloy authored
9 alert.objc_send(
10 :beginSheetModalForWindow, PrefPanePassenger.sharedInstance.mainView.window,
11 :modalDelegate, nil,
12 :didEndSelector, nil,
13 :contextInfo, nil
14 )
15 false
16 else
17 true
18 end
1679fa3 Eloy Durán Check if Passenger is installed, if not tell the user to do so.
alloy authored
19 end
b52f45e Eloy Durán Started the work to create configs for multiple apps at once. WIP.
alloy authored
20 module_function :execute
1679fa3 Eloy Durán Check if Passenger is installed, if not tell the user to do so.
alloy authored
21
e90332d Eloy Durán If the user wants it, we'll add the configuration needed by passenger to...
alloy authored
22 def p(obj)
76c1df7 Eloy Durán Verified that restarting the application works. Cleaned UI and code.
alloy authored
23 NSLog(obj.is_a?(String) ? obj : obj.inspect)
e90332d Eloy Durán If the user wants it, we'll add the configuration needed by passenger to...
alloy authored
24 end
94cd90a Eloy Durán Write configs for multiple applications and reload the apache configs.
alloy authored
25 module_function :p
e90332d Eloy Durán If the user wants it, we'll add the configuration needed by passenger to...
alloy authored
26 end
Something went wrong with that request. Please try again.