mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1356 from drbrain/fix_fog_console_SIGINT_handling
Added SIGINT handler to the fog console
This commit is contained in:
commit
66f9f49567
1 changed files with 4 additions and 0 deletions
4
bin/fog
4
bin/fog
|
@ -37,6 +37,10 @@ else
|
|||
@irb.context.prompt_mode = :FOG
|
||||
@irb.context.workspace = IRB::WorkSpace.new(binding)
|
||||
|
||||
trap 'INT' do
|
||||
@irb.signal_handle
|
||||
end
|
||||
|
||||
Formatador.display_line('Welcome to fog interactive!')
|
||||
Formatador.display_line(":#{Fog.credential} provides #{providers}")
|
||||
providers = Fog.providers
|
||||
|
|
Loading…
Reference in a new issue