Class: Datagraph::Command::Create

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

Overview

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

This method returns an undefined value.

Parameters:

  • (Array<String>) repository_specs


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

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