Method: AzureClient::Client#get_table
- Defined in:
- lib/azure_client/client.rb
#get_table(name, retry_policy = ExponentialRetryPolicy.new(2,1,2)) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/azure_client/client.rb', line 31 def get_table(name, retry_policy = ExponentialRetryPolicy.new(2,1,2)) retry_policy.retry { begin table_service.get_table(name) rescue StandardError => e if e.status_code == 404 table_service.create_table(name) else raise e end end } return Table.new(name, table_service, retry_policy) end |