tweak git clone
This commit is contained in:
parent
ff3fffc206
commit
c615943cc0
@ -2,8 +2,6 @@ Puppet::Type.type(:git).provide(:clone) do
|
|||||||
desc "Clone/pull a git repo"
|
desc "Clone/pull a git repo"
|
||||||
|
|
||||||
def create
|
def create
|
||||||
p ENV
|
|
||||||
|
|
||||||
system key_check_command
|
system key_check_command
|
||||||
|
|
||||||
if $?.exitstatus != 0
|
if $?.exitstatus != 0
|
||||||
@ -45,7 +43,7 @@ Puppet::Type.type(:git).provide(:clone) do
|
|||||||
command = %{su -c "#{command}" #{@resource[:user]}}
|
command = %{su -c "#{command}" #{@resource[:user]}}
|
||||||
end
|
end
|
||||||
|
|
||||||
command.tap { |o| p o }
|
command
|
||||||
end
|
end
|
||||||
|
|
||||||
def path
|
def path
|
||||||
|
Loading…
Reference in New Issue
Block a user