summaryrefslogtreecommitdiff
path: root/lib/chef/knife/environment_compare.rb
diff options
context:
space:
mode:
authorSander Botman <sbotman@schubergphilis.com>2013-11-04 21:31:43 +0100
committerBryan McLellan <btm@opscode.com>2013-11-06 09:13:46 -0800
commitf16fe644dea2497e7512724ad71bfe877dfa312e (patch)
treeae45ee0e4a169307e0e6fb7399d7f6e6bbc0b616 /lib/chef/knife/environment_compare.rb
parent973b0cddb6f48bd0fa62282c8d6765aa71d7fed2 (diff)
downloadchef-f16fe644dea2497e7512724ad71bfe877dfa312e.tar.gz
removing some comments and it seems I really cannot type the word constraints correctly. Or I should just drink less beer when coding..
Diffstat (limited to 'lib/chef/knife/environment_compare.rb')
-rw-r--r--lib/chef/knife/environment_compare.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/knife/environment_compare.rb b/lib/chef/knife/environment_compare.rb
index d7e6e57b86..21160e8ac3 100644
--- a/lib/chef/knife/environment_compare.rb
+++ b/lib/chef/knife/environment_compare.rb
@@ -38,10 +38,10 @@ class Chef
# Get the commandline environments or all if none are provided.
environments = environment_list
- # Get a list of all cookbooks that have constraninst and their environment.
+ # Get a list of all cookbooks that have constraints and their environment.
constraints = constraint_list(environments)
- # Get the total list of cookbooks that have contraints
+ # Get the total list of cookbooks that have constraints
cookbooks = cookbook_list(constraints)
# If we cannot find any cookbooks, we can stop here.
@@ -77,10 +77,10 @@ class Chef
constraints = {}
environments.each do |env,url|
# Because you cannot modify the default environment I filter it out here.
- unless "#{env}" == "_default"
+ unless env == "_default"
envdata = Chef::Environment.load(env)
ver = envdata.cookbook_versions
- constraints["#{env}"] = ver
+ constraints[env] = ver
end
end
constraints