lib/percheron/stack.rb in percheron-0.7.8 vs lib/percheron/stack.rb in percheron-0.7.9
- old
+ new
@@ -34,9 +34,14 @@
unit_names.each_with_object({}) do |unit_name, all|
all[unit_name] = unit_from_name(unit_name)
end
end
+ def graph!(file)
+ Graph.new(self).save!(file)
+ $logger.info "Saved '%s'" % file
+ end
+
def shell!(unit_name, command: Percheron::Actions::Shell::DEFAULT_COMMAND)
Actions::Shell.new(unit_from_name(unit_name), command: command).execute!
end
def logs!(unit_name, follow: false)