Sha256: 8645507f3fbb81ff3ad76e61c4f75f33c480459c2f8210d3b6ca3c076a98c380
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module PoolParty class Git virtual_resource(:git) do def loaded has_directory(:name => "#{name}", :path => "#{path}", :user => "#{user || Base.user}") exec({:name => "git-#{name}", :command => (user ? "git clone #{user}@#{source}" : "git clone #{source}")}) do cwd "#{path}" requires "File[#{name}]" end exec(:name => "git-update-#{name}", :cwd => "#{path}") do requires "Exec['git-#{name}']" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.3 | lib/poolparty/plugins/git.rb |