Class: Datagraph::Command::List

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

Overview

Lists existing repositories.

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

This method returns an undefined value.

Parameters:

  • (Array<String>) resource_specs


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

def execute(*resource_specs)
  resources = parse_resource_specs(resource_specs) # TODO
  Repository.each do |repository|
    puts repository.to_s
  end
end