Sha256: 42b5f8146aee0044d86fb265313b1f2153636f0da5703a5f941c5b6280e3a40a

Contents?: true

Size: 217 Bytes

Versions: 26

Compression:

Stored size: 217 Bytes

Contents

module Penchant
  class Repo
    def initialize(url)
      @url = url
    end

    def clone_to(dir)
      Dir.chdir(dir) do
        system %{git clone #{@url}}
      end
    end

    def to_s ; @url ; end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
penchant-0.2.29 lib/penchant/repo.rb
penchant-0.2.28 lib/penchant/repo.rb
penchant-0.2.27 lib/penchant/repo.rb
penchant-0.2.26 lib/penchant/repo.rb
penchant-0.2.24 lib/penchant/repo.rb
penchant-0.2.23 lib/penchant/repo.rb
penchant-0.2.22 lib/penchant/repo.rb
penchant-0.2.21 lib/penchant/repo.rb
penchant-0.2.20 lib/penchant/repo.rb
penchant-0.2.19 lib/penchant/repo.rb
penchant-0.2.18 lib/penchant/repo.rb
penchant-0.2.17 lib/penchant/repo.rb
penchant-0.2.16 lib/penchant/repo.rb
penchant-0.2.15 lib/penchant/repo.rb
penchant-0.2.14 lib/penchant/repo.rb
penchant-0.2.13 lib/penchant/repo.rb
penchant-0.2.12 lib/penchant/repo.rb
penchant-0.2.11 lib/penchant/repo.rb
penchant-0.2.10 lib/penchant/repo.rb
penchant-0.2.9 lib/penchant/repo.rb