lib/poolparty/plugins/git.rb in auser-poolparty-0.2.6 vs lib/poolparty/plugins/git.rb in auser-poolparty-0.2.8
- old
+ new
@@ -12,27 +12,22 @@
has_package(:name => "git-core")
end
def has_git_repos
with_options(:requires => 'Package["git-core"]') do
- has_directory(:name => "#{path}")
-
+ # has_directory(:name => "#{path}")
+
exec({:name => "git-#{name}"}) do
command @parent.user ? "git clone #{@parent.user}@#{@parent.source} #{@parent.path}" : "git clone #{@parent.source} #{@parent.path}"
cwd "#{::File.dirname(@parent.path) if @parent.path}"
- creates "#{@parent.path}"
+ creates "#{@parent.path}/.git"
end
exec(:name => "git-update-#{name}", :cwd => "#{path}") do
command "git pull"
requires "Exec['git-#{@parent.name}']"
end
- if symlink
- has_file(:name => "#{symlink}") do
- ensures @parent.path
- end
- end
end
end
end
\ No newline at end of file