Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing foodcritic alerts

  • Loading branch information...
commit 2fb41a8394963901d8ad8df4857e041b6cfcdc4d 1 parent 8e8cc9d
@ranjib ranjib authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/omnitruck_client.rb
View
6 libraries/omnitruck_client.rb
@@ -22,9 +22,9 @@ class OmnitruckClient
attr_reader :platform, :platform_version, :machine_architecture
def initialize(node)
- @platform = node[:platform_family] == "rhel" ? "el" : node[:platform]
- @platform_version = node[:platform_family] == "rhel" ? node[:platform_version].to_i : node[:platform_version]
- @machine_architecture = node[:kernel][:machine]
+ @platform = node['platform_family'] == "rhel" ? "el" : node['platform']
+ @platform_version = node['platform_family'] == "rhel" ? node['platform_version'].to_i : node['platform_version']
+ @machine_architecture = node['kernel']['machine']
end
def package_for_version(version, prerelease=false, nightly=false)
Please sign in to comment.
Something went wrong with that request. Please try again.