bin/cloud-show in fairchild-poolparty-1.3.5 vs bin/cloud-show in fairchild-poolparty-1.3.17
- old
+ new
@@ -14,10 +14,11 @@
shows output about the clouds.rb
EOS
short_desc "shows output about the clouds.rb"
+ opt :generate_graph, "Generate the dependency tree graph", :type => :string, :default => nil
run do |command|
@loaded_clouds.each do |cld|
@@ -28,10 +29,21 @@
"Minimum instances: #{cld.minimum_instances}",
"Maximum instances: #{cld.maximum_instances}",
"Running on: #{cld.cloud_provider_name}"
]
- print_msg(msg)
+ if verbose?
+ msg << [
+ "Keypair: #{cld.keypair.basename}"
+ ]
+ end
+
+ if command[:generate_graph]
+ vputs "Generating dependency graph at: #{command[:generate_graph]}"
+ cld.output_resources_graph('png', command[:generate_graph], {"fontsize" => 30})
+ end
+
+ print_msg(msg.flatten)
end
end
end
\ No newline at end of file