lib/shaddox/shadow.rb in shaddox-0.0.4 vs lib/shaddox/shadow.rb in shaddox-0.0.5
- old
+ new
@@ -51,10 +51,16 @@
info "Ensuring directory '#{path}' exists", 1 if @verbose
FileUtils::mkdir_p(path.exp_path)
end
def repo_clone(repo_key, path)
- puts "Cloning repo at #{@repos[repo_key].info[:foo]} to #{path.exp_path}"
+ repo = @repos[repo_key]
+ cd path do
+ case repo.vcs
+ when :git
+ sh "git clone #{repo.url}"
+ end
+ end
end
def install(package)
unless @installer
warn "No package manager is defined for this target.", 1