def runcvs(*args)
if @resource.value(:cvs_rsh)
debug "Using CVS_RSH = " + @resource.value(:cvs_rsh)
- e = { :CVS_RSH => @resource.value(:cvs_rsh) }
+ e = { :CVS_RSH => @resource.value(:cvs_rsh) }
else
e = {}
end
Puppet.debug cvs *args
end
end
-
end
fail("#{@resource.value(:revision)} is not a local or remote ref")
end
- # $ git ls-remote --heads --tags origin feature/cvs
+ # $ git ls-remote --heads --tags origin feature/cvs
# 7d4244b35e72904e30130cad6d2258f901c16f1a refs/heads/feature/cvs
canonical = remote_ref.split.first
end
if @resource.value(:configuration)
args.push('--config-dir', @resource.value(:configuration))
end
-
+
return args
end
feature :multiple_remotes,
"The repository tracks multiple remote repositories"
-
+
feature :configuration,
"The configuration directory to use"
desc "The remote repository to track"
defaultto "origin"
end
-
+
newparam :configuration, :required_features => [:configuration] do
desc "The configuration directory to use"
end