Class: Datagraph::Command::Drop

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

Overview

Destroys a repository permanently.

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(*repository_specs)

This method returns an undefined value.

Parameters:

  • (Array<String>) repository_specs


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

def execute(*repository_specs)
  repositories = validate_repository_specs(repository_specs)
  repositories.each do |repository|
    process = repository.destroy!
    puts "Repository #{repository.url} successfully dropped." if $VERBOSE
  end
end