From 3a394f61e391cb208a5b9b4a0b0cd36ecd2ed5d0 Mon Sep 17 00:00:00 2001 From: "geemus (Wesley Beary)" Date: Mon, 15 Feb 2010 20:18:52 -0800 Subject: [PATCH] more cleanup around interactive formatting --- bin/fog | 3 ++- lib/fog/bin.rb | 2 +- lib/fog/model.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/fog b/bin/fog index 5f2a3649c..0963b747b 100755 --- a/bin/fog +++ b/bin/fog @@ -31,6 +31,7 @@ available_services = if services.length > 1 else services.first end -print "Welcome to fog interactive; your '#{Fog.credential.to_s}' configuration provides access to #{available_services}.\n" +print "Welcome to fog interactive!\n" +print "Your '#{Fog.credential.to_s}' configuration provides access to #{available_services}.\n" catch(:IRB_EXIT) { @irb.eval_input } diff --git a/lib/fog/bin.rb b/lib/fog/bin.rb index 8aeec28ad..496e17a3d 100644 --- a/lib/fog/bin.rb +++ b/lib/fog/bin.rb @@ -21,7 +21,7 @@ module Fog nil end unless credentials && credentials[credential] - print("\n To run as '#{credential}', add credentials like the following to ~/.fog\n") + print("\n To run as '#{credential}', add the following to ~/.fog\n") yml = <<-YML :#{credential}: diff --git a/lib/fog/model.rb b/lib/fog/model.rb index 9460c82cf..44341d1b4 100644 --- a/lib/fog/model.rb +++ b/lib/fog/model.rb @@ -64,7 +64,7 @@ module Fog data << self.class.attributes.map {|attribute| "#{attribute}=#{send(attribute).inspect}"}.join(",\n#{Thread.current[:formatador].indentation}") end end - data << ">" + data << "\n#{Thread.current[:formatador].indentation}>" data end