Method: Metior.repository

Defined in:
lib/metior.rb

.repository(type, *options) ⇒ Repository

Creates a new repository for the given repository type and path

Parameters:

  • type (Symbol)

    The type of the repository, e.g. :git

  • options (Array<Object>)

    The options to use for creating the new repository, e.g. a file system path

Returns:

  • (Repository)

    A VCS specific Repository instance

[View source]

24
25
26
# File 'lib/metior.rb', line 24

def self.repository(type, *options)
  vcs(type)::Repository.new(*options)
end