Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wrap looong line.
  • Loading branch information
fnichol committed Jun 1, 2012
1 parent 0a2c2d1 commit 4246346
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/chef_rvm_passenger_recipe_helpers.rb
Expand Up @@ -37,7 +37,12 @@ def determine_gem_version_if_not_given
spec = Gem::DependencyInstaller.new.find_gems_with_sources(
Gem::Dependency.new("passenger", '>= 0')).last

raise Chef::RVMPassenger::GemVersionNotFound, "Cannot find any suitable gem version of ruby Passenger. Please specify node[:rvm_passenger][:version] or check if there are any connection problem with the gem sources" if spec.nil?
if spec.nil?
raise Chef::RVMPassenger::GemVersionNotFound,
"Cannot find any suitable gem version of ruby Passenger. " +
"Please specify node['rvm_passenger']['version'] or check if " +
"there are any connection problem with the gem sources."
end

node.set[:rvm_passenger][:version] = spec[0].version.to_s
Chef::Log.debug(%{Setting node['rvm_passenger']['version'] = } +
Expand Down

0 comments on commit 4246346

Please sign in to comment.