Class: Datagraph::Command::Rename

Inherits:
Datagraph::Command show all
Defined in:
lib/datagraph/command/rename.rb

Overview

Renames a repository.

Instance Method Summary (collapse)

Methods inherited from Datagraph::Command

#basename, #parse_repository_specs, #parse_resource_specs, #validate_repository_specs, #validate_resource_specs

Methods included from Datagraph::Client

rpc

Instance Method Details

- execute(old_repository_spec, new_repository_spec)

This method returns an undefined value.

Parameters:

  • (String) old_repository_spec
  • (String) new_repository_spec


10
11
12
13
14
# File 'lib/datagraph/command/rename.rb', line 10

def execute(old_repository_spec, new_repository_spec)
  old_repository = validate_repository_specs([old_repository_spec]).first
  new_repository = parse_repository_specs([new_repository_spec]).first
  # TODO
end