lib/chef_metal/action_handler.rb in chef-metal-0.10.2 vs lib/chef_metal/action_handler.rb in chef-metal-0.11.beta
- old
+ new
@@ -28,12 +28,16 @@
def should_perform_actions
true
end
+ def report_progress(description)
+ Array(description).each { |d| puts d }
+ end
+
def performed_action(description)
- puts description
+ Array(description).each { |d| puts d }
end
# This should perform the actual action (e.g., converge) if there is an
# action that needs to be done.
def perform_action(description)
@@ -41,21 +45,19 @@
yield
end
performed_action(description)
end
- # This is the name that will show up in the output, so should be something
- # like a cookbook or driver name
- def debug_name
- raise ActionFailed, "ActionHandler behavior requires a debug_name"
- end
-
# Open a stream which can be printed to and closed
def open_stream(name)
if block_given?
yield STDOUT
else
STDOUT
end
+ end
+
+ # A URL identifying the host node. nil if no such node.
+ def host_node
end
end
end