Sha256: 0b569f86bd2a2fdbad590d34bfe2cd400c06b684895b264b0d5bb2d43d17a7e5

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

username = ENV['SUDO_USER'].strip

execute "set git email" do
  command "git config --global user.email 'jenkins-ci@example.com'"
  user username
end

execute "set git user" do
  command "git config --global user.name 'Jenkins CI Server'"
  user username
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lobot-0.9.7 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb
lobot-0.9.6 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb
lobot-0.9.5 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb
lobot-0.9.4 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb
lobot-0.9.2 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb
lobot-0.9.0 lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb