Sha256: 6a5b03aebeaebf43b89a448752a408b1af4797c2fac5dced17a984680285b442

Contents?: true

Size: 389 Bytes

Versions: 15

Compression:

Stored size: 389 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/require_files'
require_library %w(rugged addressable/uri)

module FeduxOrgStdlib
  class RemoteRepository
    private

    attr_reader :url

    public

    def initialize(url)
      @url = Addressable::URI.heuristic_parse(url)
    end

    def clone_to(directory)
      system("git clone #{url} #{directory} >/dev/null 2>&1")
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.11.18 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.17 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.16 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.15 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.14 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.12 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.11 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.9 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.8 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.7 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.6 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.5 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.4 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.3 lib/fedux_org_stdlib/remote_repository.rb
fedux_org-stdlib-0.11.2 lib/fedux_org_stdlib/remote_repository.rb