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
|
else
|
||||||
services.first
|
services.first
|
||||||
end
|
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 }
|
catch(:IRB_EXIT) { @irb.eval_input }
|
||||||
|
|
|
@ -21,7 +21,7 @@ module Fog
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
unless credentials && credentials[credential]
|
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
|
yml = <<-YML
|
||||||
|
|
||||||
:#{credential}:
|
:#{credential}:
|
||||||
|
|
|
@ -64,7 +64,7 @@ module Fog
|
||||||
data << self.class.attributes.map {|attribute| "#{attribute}=#{send(attribute).inspect}"}.join(",\n#{Thread.current[:formatador].indentation}")
|
data << self.class.attributes.map {|attribute| "#{attribute}=#{send(attribute).inspect}"}.join(",\n#{Thread.current[:formatador].indentation}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
data << ">"
|
data << "\n#{Thread.current[:formatador].indentation}>"
|
||||||
data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue