Sha256: 3408bcf4e8862f2430476d38dd7615a8f6321f20cfd0e74f4f3e7bfb581987d6
Contents?: true
Size: 489 Bytes
Versions: 8
Compression:
Stored size: 489 Bytes
Contents
namespace :endpoints do desc 'Downloads a fresh copy of the endpoints.json' task :download do require 'net/http' require 'uri' host = 'aws-sdk-configurations.amazonwebservices.com' uri = URI.parse("http://#{host}/endpoints.json") response = Net::HTTP.get_response(uri) root = File.dirname(File.dirname(__FILE__)) target = File.join(root, 'apis', 'configuration', 'endpoints.json') File.open(target, 'w') { |file| file.write(response.body) } end end
Version data entries
8 entries across 8 versions & 1 rubygems