Method: NexusAPI::CLIUtils#setup

Defined in:
lib/nexus_api/cli_utils.rb

#setupObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/nexus_api/cli_utils.rb', line 5

def setup
  Dotenv.load(options[: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: options[:team_config]
  )
end