summaryrefslogtreecommitdiff
path: root/lib/chef/run_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/run_list.rb')
-rw-r--r--lib/chef/run_list.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/run_list.rb b/lib/chef/run_list.rb
index 8b586f4077..b9ec9259ca 100644
--- a/lib/chef/run_list.rb
+++ b/lib/chef/run_list.rb
@@ -47,13 +47,13 @@ class Chef
end
def role_names
- @run_list_items.inject([]){|memo, run_list_item| memo << run_list_item.name if run_list_item.role? ; memo}
+ @run_list_items.inject([]) { |memo, run_list_item| memo << run_list_item.name if run_list_item.role? ; memo }
end
alias :roles :role_names
def recipe_names
- @run_list_items.inject([]){|memo, run_list_item| memo << run_list_item.name if run_list_item.recipe? ; memo}
+ @run_list_items.inject([]) { |memo, run_list_item| memo << run_list_item.name if run_list_item.recipe? ; memo }
end
alias :recipes :recipe_names
@@ -130,7 +130,7 @@ class Chef
end
def remove(item)
- @run_list_items.delete_if{|i| i == item}
+ @run_list_items.delete_if { |i| i == item }
self
end
alias :delete :remove
@@ -138,7 +138,7 @@ class Chef
# Expands this run_list: recursively expand roles into their included
# recipes.
# Returns a RunListExpansion object.
- def expand(environment, data_source="server", expansion_opts={})
+ def expand(environment, data_source = "server", expansion_opts = {})
expansion = expansion_for_data_source(environment, data_source, expansion_opts)
expansion.expand
expansion
@@ -153,7 +153,7 @@ class Chef
item.kind_of?(RunListItem) ? item : parse_entry(item)
end
- def expansion_for_data_source(environment, data_source, opts={})
+ def expansion_for_data_source(environment, data_source, opts = {})
case data_source.to_s
when "disk"
RunListExpansionFromDisk.new(environment, @run_list_items)