Class: NexusAPI::Download
- Inherits:
-
Thor
- Object
- Thor
- NexusAPI::Download
- Includes:
- CLIUtils
- Defined in:
- lib/nexus_api/cli_commands/download.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
Instance Method Summary collapse
Methods included from CLIUtils
#if_file_exists?, #print_element, #print_paginating_set, #print_set, #repository_set?, #set, #setup
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
3 4 5 |
# File 'lib/nexus_api/cli_commands/download.rb', line 3 def api @api end |
Instance Method Details
#docker ⇒ Object
10 11 12 13 |
# File 'lib/nexus_api/cli_commands/download.rb', line 10 def docker setup @api.download_docker_component(image: [:image], tag: [:docker_tag]) end |
#file ⇒ Object
18 19 20 21 |
# File 'lib/nexus_api/cli_commands/download.rb', line 18 def file setup @api.download(id: [:nexus_id], name: [:new_name]) end |