summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-07-31 14:43:53 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-07-31 14:43:53 -0700
commit85d3dfb6a361c774b6a1e4d4e437b836d5dd19cc (patch)
tree07d14077fccc95dd589bd793feabf77d0f94ebe1 /lib/chef
parent37efaeea757b266c37280df5b2d4857fa6967815 (diff)
downloadchef-85d3dfb6a361c774b6a1e4d4e437b836d5dd19cc.tar.gz
Revert back to the first argument being cookbook_name.
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/cookbook/synchronizer.rb2
-rw-r--r--lib/chef/event_dispatch/base.rb2
-rw-r--r--lib/chef/formatters/doc.rb2
-rw-r--r--lib/chef/formatters/minimal.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/cookbook/synchronizer.rb b/lib/chef/cookbook/synchronizer.rb
index 4979aabfdf..fc8e739d73 100644
--- a/lib/chef/cookbook/synchronizer.rb
+++ b/lib/chef/cookbook/synchronizer.rb
@@ -131,7 +131,7 @@ class Chef
files_remaining_by_cookbook[file.cookbook] -= 1
if files_remaining_by_cookbook[file.cookbook] == 0
- @events.synchronized_cookbook(file.cookbook)
+ @events.synchronized_cookbook(file.cookbook.name, file.cookbook)
end
end
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index 7ed871145b..0ae5101029 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -119,7 +119,7 @@ class Chef
end
# Called when cookbook +cookbook+ has been sync'd
- def synchronized_cookbook(cookbook)
+ def synchronized_cookbook(cookbook_name, cookbook)
end
# Called when an individual file in a cookbook has been updated
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index a40efb7298..a5d7e210c5 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -134,7 +134,7 @@ class Chef
end
# Called when cookbook +cookbook+ has been sync'd
- def synchronized_cookbook(cookbook)
+ def synchronized_cookbook(cookbook_name, cookbook)
puts_line "- #{cookbook.name} (#{cookbook.version})"
end
diff --git a/lib/chef/formatters/minimal.rb b/lib/chef/formatters/minimal.rb
index 922a228f6e..3862951f76 100644
--- a/lib/chef/formatters/minimal.rb
+++ b/lib/chef/formatters/minimal.rb
@@ -110,7 +110,7 @@ class Chef
end
# Called when cookbook +cookbook+ has been sync'd
- def synchronized_cookbook(cookbook)
+ def synchronized_cookbook(cookbook_name, cookbook)
print "."
end