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:
parent
72551a87d7
commit
3a394f61e3
3 changed files with 4 additions and 3 deletions
3
bin/fog
3
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 }
|
||||
|
|
|
@ -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}:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue