121 throws IOException {
122 try {
123 LOG.log(Level.INFO, "Uninstalling {0}.", applicationTitle);
124 String[] cmd = new String[] { "sudo", "rpm", "-e", "--nodeps",
125 applicationTitle };
126 Utils.runCommand(cmd, true, CONFIG_INSTANCE.getInstallTimeout());
127 LOG.info("Uninstalling done.");
128 } catch (ExecutionException e) {
129 throw new IOException(e);
130 }
131 }
132
133 @Override
134 public Path getInstalledAppRootLocation(AppWrapper app,
135 String applicationTitle) {
136 return Paths.get("/opt", applicationTitle);
137 }
138
139 @Override
140 public String getAppName(Map<String, Object> params) {
141 String fetchFrom = LinuxRpmBundler.BUNDLE_NAME.fetchFrom(params);
142 System.out.println("Linux RPM Bundle Name is "+fetchFrom);
143 return fetchFrom;
144 }
145
146 @Override
147 public void manualInstall(AppWrapper app) throws IOException {
148 throw new UnsupportedOperationException("Not supported yet."); // To
149 // change
150 // body
151 // of
152 // generated
153 // methods,
154 // choose
155 // Tools
156 // |
157 // Templates.
158 }
159 }
|
121 throws IOException {
122 try {
123 LOG.log(Level.INFO, "Uninstalling {0}.", applicationTitle);
124 String[] cmd = new String[] { "sudo", "rpm", "-e", "--nodeps",
125 applicationTitle };
126 Utils.runCommand(cmd, true, CONFIG_INSTANCE.getInstallTimeout());
127 LOG.info("Uninstalling done.");
128 } catch (ExecutionException e) {
129 throw new IOException(e);
130 }
131 }
132
133 @Override
134 public Path getInstalledAppRootLocation(AppWrapper app,
135 String applicationTitle) {
136 return Paths.get("/opt", applicationTitle);
137 }
138
139 @Override
140 public String getAppName(Map<String, Object> params) {
141 return LinuxRpmBundler.BUNDLE_NAME.fetchFrom(params);
142 }
143
144 @Override
145 public void manualInstall(AppWrapper app) throws IOException {
146 throw new UnsupportedOperationException("Not supported yet."); // To
147 // change
148 // body
149 // of
150 // generated
151 // methods,
152 // choose
153 // Tools
154 // |
155 // Templates.
156 }
157 }
|