mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
improved status
This commit is contained in:
parent
c185aba360
commit
3de804c3a5
1 changed files with 14 additions and 0 deletions
|
@ -28,6 +28,20 @@ module Fog
|
|||
def success?
|
||||
status == 'success'
|
||||
end
|
||||
|
||||
def non_running?
|
||||
if status == 'running'
|
||||
if progress.to_i == 0
|
||||
printf '.'
|
||||
else
|
||||
puts progress
|
||||
end
|
||||
else
|
||||
puts status
|
||||
end
|
||||
status != 'running'
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue