Method: NexusAPI::CLIUtils#setup
- Defined in:
- lib/nexus_api/cli_utils.rb
#setup ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/nexus_api/cli_utils.rb', line 5 def setup Dotenv.load([:nexus_config]) @api = NexusAPI::API.new( username: ENV['NEXUS_USERNAME'], password: ENV['NEXUS_PASSWORD'], hostname: ENV['NEXUS_HOSTNAME'], docker_pull_hostname: ENV['DOCKER_PULL_HOSTNAME'], docker_push_hostname: ENV['DOCKER_PUSH_HOSTNAME'], team_config: [:team_config] ) end |