chef/templates/default/manifest.xml.erb in poise-service-solaris-0.1.1 vs chef/templates/default/manifest.xml.erb in poise-service-solaris-0.1.2

- old
+ new

@@ -16,11 +16,11 @@ </dependency> <exec_method timeout_seconds="60" type="method" name="start" exec="<%= @command %>"> <method_context working_directory="<%= @directory %>"> <method_credential user="<%= @user %>" /> - <% if @environment %> + <% unless @environment.empty? %> <method_environment> <% @environment.each do |name,value| %> <%= "<envvar name=\"#{name}\" value=\"#{value}\" />" %> <% end %> </method_environment> @@ -34,11 +34,11 @@ --> <exec_method timeout_seconds="60" type="method" name="stop" exec=":kill"> <method_context working_directory="<%= @directory %>"> <method_credential user="<%= @user %>" /> - <% if @environment %> + <% unless @environment.empty? %> <method_environment> <% @environment.each do |name,value| %> <%= "<envvar name=\"#{name}\" value=\"#{value}\" />" %> <% end %> </method_environment> @@ -57,10 +57,10 @@ --> <exec_method timeout_seconds="60" type="method" name="refresh" exec=":true"> <method_context working_directory="<%= @directory %>"> <method_credential user="<%= @user %>" /> - <% if @environment %> + <% unless @environment.empty? %> <method_environment> <% @environment.each do |name,value| %> <%= "<envvar name=\"#{name}\" value=\"#{value}\" />" %> <% end %> </method_environment>