Class: Dydra::Command::Rename

Inherits:
Dydra::Command show all
Defined in:
lib/dydra/command/rename.rb

Overview

Renames a repository.

Instance Method Summary (collapse)

Methods inherited from Dydra::Command

#abort, #basename, #catch_errors, #debug?, #initialize, #parse_repository_specs, #parse_resource_specs, #require_gem!, #stderr, #stdout, #validate_repository_specs, #validate_resource_specs, #verbose?, #wrap_errors

Methods included from Dydra::Client

authenticate!, credentials_file, delete, get, get_json, post, reset!, resource, rpc, setup?

Constructor Details

This class inherits a constructor from Dydra::Command

Instance Method Details

- execute(old_repository_spec, new_repository_spec)

This method returns an undefined value.

Parameters:

  • old_repository_spec (String)
  • new_repository_spec (String)


10
11
12
13
14
# File 'lib/dydra/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