-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from Duke-GCB/azure-changes
Add support for using Azure storage
- Loading branch information
Showing
21 changed files
with
1,565 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""Duke data service command line project management utility.""" | ||
import sys | ||
from ddsc.ddsclient import DDSClient, AZURE_BACKING_STORAGE | ||
from ddsc.exceptions import DDSUserException | ||
|
||
|
||
def main(args=None): | ||
if args is None: | ||
args = sys.argv[1:] | ||
client = DDSClient(backing_storage=AZURE_BACKING_STORAGE) | ||
try: | ||
client.run_command(args) | ||
except DDSUserException as ex: | ||
if client.show_error_stack_trace: | ||
raise | ||
else: | ||
error_message = '\n{}\n'.format(str(ex)) | ||
sys.stderr.write(error_message) | ||
sys.exit(2) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
Oops, something went wrong.