1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

more cleanup around interactive formatting

This commit is contained in:
geemus (Wesley Beary) 2010-02-15 20:18:52 -08:00
parent 72551a87d7
commit 3a394f61e3
3 changed files with 4 additions and 3 deletions

View file

@ -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 }

View file

@ -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}:

View file

@ -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