@@ -24,9 +24,6 @@ public void actionPerformed(AnActionEvent event) {
24
24
Project project = event .getProject ();
25
25
PropertiesComponent pc = PropertiesComponent .getInstance (project );
26
26
String appPath = pc .getValue ("docker_app_path" );
27
- if (appPath == null || appPath .equals ("" )) {
28
- appPath = "" ; // project.getBasePath();
29
- }
30
27
try {
31
28
String orchestrator = "swarm" ;
32
29
if (pc .getValue ("docker_app_orchestrator" ).equals ("kubernetes" ))
@@ -58,21 +55,16 @@ public void actionPerformed(AnActionEvent event) {
58
55
+ name
59
56
+ settings ;
60
57
Process p = Runtime .getRuntime ().exec (cmd ,null , new File (project .getBasePath ()));
61
- /*Logger l = Logger.getInstance("docker-app");
62
- l.setLevel(Level.INFO);
63
- l.info("Running deploy command: " + cmd);*/
64
58
BufferedReader input = new BufferedReader (new InputStreamReader (p .getInputStream ()));
65
59
String line ;
66
60
while ((line = input .readLine ()) != null ) {
67
61
Notification n = new Notification ("docker-app" , "deploy" , line , NotificationType .INFORMATION );
68
62
Notifications .Bus .notify (n );
69
- //l.info(line);
70
63
}
71
64
BufferedReader error = new BufferedReader (new InputStreamReader (p .getErrorStream ()));
72
65
while ((line = error .readLine ()) != null ) {
73
66
Notification n = new Notification ("docker-app" , "deploy" , line , NotificationType .ERROR );
74
67
Notifications .Bus .notify (n );
75
- //l.warn(line);
76
68
}
77
69
} catch (Exception e ) {
78
70
Messages .showMessageDialog (project , "docker-app invocation failed with " + e .toString (), "Render Failure" , Messages .getInformationIcon ());
0 commit comments