Class: Datagraph::Command::URL

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

Overview

Outputs the URL of an account or 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(*resource_specs)

This method returns an undefined value.

Parameters:

  • (Array<String>) resource_specs


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

def execute(*resource_specs)
  resources = validate_resource_specs(resource_specs)
  resources.each do |resource|
    puts resource.url.to_s
  end
end