Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from tomstark99/merge-forward-release/1.7
Browse files Browse the repository at this point in the history
Merge forward updates release/1.6 -> release/1.7
  • Loading branch information
tomstark99 authored May 28, 2024
2 parents 0a56500 + 5b16fb7 commit c6bca81
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .src/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,26 @@ def download(self):
self.error = self.dlm.download(self.url)
self._handle_corda_shell()
return self.error

class CordaToolsHaUtilitiesService(DeploymentService):

def _create_dir(self):
if not self.sysi.path_exists(self.dir):
print(f'Creating {self.dir}')
self.sysi.run(f'mkdir {self.dir}')

def _move(self):
self.sysi.run(f'mv {self._zip_name()} {self.dir}/{self._zip_name(no_version=True)}')

def download(self) -> bool:
self._create_dir()
if self._check_presence():
return
# If artifact not present then download it
print(f'Downloading {self._zip_name()}')
self.error = self.dlm.download(self.url)
self._move()
return self.error

class FinanceContractsCordapp(CordappService):
pass
Expand Down

0 comments on commit c6bca81

Please sign in to comment.