Skip to content

Instantly share code, notes, and snippets.

@kylegato
Created August 18, 2015 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylegato/77272e8b8ce38b4ccf06 to your computer and use it in GitHub Desktop.
Save kylegato/77272e8b8ce38b4ccf06 to your computer and use it in GitHub Desktop.
def extract(self):
self.validate()
# retrieve and extract the tar archive
self.debug("Downloading and extracting build package.")
cmd = EXTRACT_CMD % (self.url, self.build_path)
self._run_command(cmd, user=EXTRACT_USER)
return self._create_return('extract', {'result': 'Success'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment