summaryrefslogtreecommitdiff
path: root/lib/chef/environment.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-01-14 13:58:57 +0000
committerThom May <thom@may.lt>2016-01-14 13:58:57 +0000
commit05064423057d4cf46f4713b81b08829cf6d20af6 (patch)
treeacbf46b849ad87e9248bfe8616a1d846bd5264e0 /lib/chef/environment.rb
parentc05928361f871468634857fc4220ae08bf26dfab (diff)
parentaf4afcc712d24dbc85a9c020a124acadeed295d2 (diff)
downloadchef-05064423057d4cf46f4713b81b08829cf6d20af6.tar.gz
Merge pull request #4398 from chef/lcg/trailing_comma
autocorrecting Style/TrailingComma
Diffstat (limited to 'lib/chef/environment.rb')
-rw-r--r--lib/chef/environment.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb
index e2dc267ff7..45491e0d72 100644
--- a/lib/chef/environment.rb
+++ b/lib/chef/environment.rb
@@ -67,7 +67,7 @@ class Chef
set_or_return(
:description,
arg,
- :kind_of => String
+ :kind_of => String,
)
end
@@ -75,7 +75,7 @@ class Chef
set_or_return(
:default_attributes,
arg,
- :kind_of => Hash
+ :kind_of => Hash,
)
end
@@ -87,7 +87,7 @@ class Chef
set_or_return(
:override_attributes,
arg,
- :kind_of => Hash
+ :kind_of => Hash,
)
end
@@ -103,8 +103,8 @@ class Chef
:kind_of => Hash,
:callbacks => {
"should be a valid set of cookbook version requirements" => lambda { |cv| Chef::Environment.validate_cookbook_versions(cv) }
- }
- }
+ },
+ },
)
end
@@ -115,7 +115,7 @@ class Chef
:version => {
:callbacks => { "should be a valid version requirement" => lambda { |v| Chef::Environment.validate_cookbook_version(v) } }
}
- })
+ },)
@cookbook_versions[cookbook] = version
end
@@ -127,7 +127,7 @@ class Chef
"json_class" => self.class.name,
"chef_type" => "environment",
"default_attributes" => @default_attributes,
- "override_attributes" => @override_attributes
+ "override_attributes" => @override_attributes,
}
result
end