| 216 | |
| 217 | |
| 218 | class Ubuntu(Linux): |
| 219 | def _update_system(self, params): |
| 220 | subprocess.check_call(['apt-get', '-y', 'update']) |
| 221 | subprocess.check_call(['apt-get', '-y', 'install', 'ruby2.0']) |
| 222 | |
| 223 | def _remove_agent(self, params): |
| 224 | subprocess.check_call(['dpkg', '-r', 'codedeploy-agent']) |
| 225 | |
| 226 | def _stop_agent(self, params): |
| 227 | params.not_found_msg = 'codedeploy-agent: unrecognized service' |
| 228 | return Linux._stop_agent(self, params) |
| 229 | |
| 230 | |
| 231 | class RHEL(Linux): |
no outgoing calls