/app/utils/CLI.h
http://github.com/tgunr/passengerpane · C Header · 40 lines · 28 code · 11 blank · 1 comment · 0 complexity · 6a84b18d032eb52ced57ffee52af6466 MD5 · raw file
- #import <Foundation/Foundation.h>
- #import "CJSONDeserializer.h"
- #import "Application.h"
- enum {
- PPANE_SUCCESS = 0
- };
- @interface CLI : NSObject {
- id appDelegate;
- AuthorizationRef authorizationRef;
- NSString *pathToCLI;
- }
- @property (assign) id appDelegate;
- @property (assign) NSString *pathToCLI;
- + (id) sharedInstance;
- - (NSMutableArray *) listApplications;
- - (void) add:(Application *)application;
- - (void) update:(Application *)application;
- - (void) restart:(Application *)application;
- - (void) restart;
- - (BOOL) isPassengerModuleInstalled;
- - (id) execute:(NSArray *)arguments elevated:(BOOL)elevated;
- - (id) execute:(NSArray *)arguments;
- - (AuthorizationRef) authorizationRef;
- - (void) setAuthorizationRef:(AuthorizationRef)ref;
- - (void) deauthorize;
- - (BOOL) isAuthorized;
- // For testing purposed only
- - (void) fakeAuthorize;
- @end