Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Chef | resources | gitでgitリポジトリの操作

概要

gitでgitリポジトリの操作

詳細

gitでgitリポジトリの操作をします。

GitHubからRbenvを/home/user_name/.rbenvに取得
git "/home/user_name/.rbenv" do
  # git protocolでもよい
  repository "https://github.com/sstephenson/rbenv.git"
  reference "master"
  action :sync
end

参照

その他詳細については下記公式ドキュメント参照
http://docs.opscode.com/resource_git.html