Last active
March 13, 2016 21:02
-
-
Save Hanmac/fbbe941c373f0cee1793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def snapshot_description | |
initialization | |
@resp.snapshots.each do |n| | |
if name = n.tags.find { |t| t.key == 'Name' } | |
desc = name.value | |
end | |
if n.start_time < @threshold | |
@count += 1 | |
snapshot_list(n, desc) | |
end | |
end | |
end | |
def snapshot_list(n) | |
puts "#{n.snapshot_id} #{n.start_time} #{desc}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment