Skip to content

Instantly share code, notes, and snippets.

@Hanmac
Last active March 13, 2016 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hanmac/fbbe941c373f0cee1793 to your computer and use it in GitHub Desktop.
Save Hanmac/fbbe941c373f0cee1793 to your computer and use it in GitHub Desktop.
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