Skip to content

Commit

Permalink
small line lenght style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanlieshout committed Aug 11, 2016
1 parent 50b331d commit 818a39d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions recipes/_package_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
#
# For backward compatibility it can be defined as an array or as a Hash.
#
# If it is defined as a hash, by default versions for each packages is nil. So it will install the latest one available in repositories.
# If it is defined as a hash, by default versions for each packages is nil. So it will install the
# latest one available in repositories.
#
# By default followings are defined and can be adjusted for your tate in your wrapper cookbook
# default['nrpe']['packages'] = {
Expand All @@ -39,7 +40,8 @@
# 'nagios-plugins-basic' => {'version' => nil},
# 'nagios-plugins-standard' => {'version' => nil}
# }
# These version information can be overriden in your environment specific attributes so you can intall any version you prefer
# These version information can be overriden in your environment specific attributes so you can intall
# any version you prefer
#
# In case of defining as an array, it is as usual. It will install latest version found in repositories

Expand Down
4 changes: 3 additions & 1 deletion recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
# The updating of the list of checks.
ruby_block 'updating of the list of checks' do
block do
checks = run_context.resource_collection.select { |r| r.is_a?(Chef::Resource::NrpeCheck) && r.action == [:add] }.map(&:command_name)
checks = run_context.resource_collection.select do |r|
r.is_a?(Chef::Resource::NrpeCheck) && r.action == [:add]
end.map(&:command_name)
node.default['nrpe']['checks'] = checks
end
end

0 comments on commit 818a39d

Please sign in to comment.