Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Code changes for code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Schuhmann committed Apr 1, 2015
1 parent 45efaab commit 28a49ea
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cookbook 'postgresql', '~> 3.4.10'
cookbook 'java', '~> 1.28.0'
cookbook 'git', '~> 4.1.0'
cookbook 'mercurial', '~> 2.0.4'
cookbook 'subversion', '~> 1.3.0'
cookbook 'subversion', '~> 1.3.0'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ Gives you the ability to create TeamCity server/agent
<tr>
<td><tt>['teamcity']['agent']['system_properties']</tt></td>
<td>String</td>
<td>The URI of the TeamCity server.</td>
<td>Build Script Properties.</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['teamcity']['agent']['env_properties']</tt></td>
<td>String</td>
<td>The URI of the TeamCity server.</td>
<td>Environment Variables.</td>
<td><tt></tt></td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
default['teamcity']['agent']['work_dir'] = '../work'
default['teamcity']['agent']['temp_dir'] = '../temp'
default['teamcity']['agent']['system_dir'] = '../system'
end
end
6 changes: 3 additions & 3 deletions recipes/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

case node['platform']
when 'windows'
include_recipe 'chef-teamcity::agent-windows'
include_recipe 'chef-teamcity::windows_agent'
else
include_recipe 'chef-teamcity::agent-linux'
end
include_recipe 'chef-teamcity::linux_agent'
end
11 changes: 5 additions & 6 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@

include_recipe 'java'

case node['platform']
when 'windows'
include_recipe 'git'
include_recipe 'mercurial'
include_recipe 'subversion'
else
include_recipe 'git'
include_recipe 'mercurial'
include_recipe 'subversion'

if node['platform'] != 'windows'
package 'git'
package 'mercurial'
package 'subversion'
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion templates/default/buildAgent.properties.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ systemDir=<%= @system_dir %>
## The IP address which will be used by TeamCity server to connect to the build agent.
## If not specified, it is detected by build agent automatically,
## but if the machine has several network interfaces, automatic detection may fail.
<% unless @own_address.nil? %>
<% if @own_address %>
ownAddress=<%= @own_address %>
<% end %>

Expand Down

0 comments on commit 28a49ea

Please sign in to comment.