Skip to content

Commit

Permalink
Added list_detail convenience method; updated README with usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
tedb committed Dec 3, 2011
1 parent f5db4cc commit ed6e239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -4,4 +4,6 @@ Usage
`
invalidator = CloudfrontInvalidator.new('<AWS key>', '<AWS secret>', '<CF distribution id>')
invalidator.invalidate('/images/rails.png')
invalidator.list()
invalidator.list_detail()
`
4 changes: 4 additions & 0 deletions lib/cloudfront-invalidator.rb
Expand Up @@ -57,6 +57,10 @@ def list(show_detail = false)
end
end

def list_detail
list(true)
end

def get_invalidation_detail_xml(invalidation_id)
uri = URI.parse "#{@BASE_URL}#{@cf_dist_id}/invalidation/#{invalidation_id}"
http = Net::HTTP.new(uri.host, uri.port)
Expand Down

0 comments on commit ed6e239

Please sign in to comment.