Class: NexusAPI::Move

Inherits:
Thor
  • Object
show all
Includes:
CLIUtils
Defined in:
lib/nexus_api/cli_commands/move.rb

Instance Attribute Summary collapse

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

#apiObject

Returns the value of attribute api.



3
4
5
# File 'lib/nexus_api/cli_commands/move.rb', line 3

def api
  @api
end

Instance Method Details

#componentsObject



10
11
12
13
# File 'lib/nexus_api/cli_commands/move.rb', line 10

def components
  setup
  @api.move_components_to(destination: options[:destination], tag: options[:tag])
end