lib/fastly/service.rb in fastly-1.1.3 vs lib/fastly/service.rb in fastly-1.1.4
- old
+ new
@@ -57,16 +57,17 @@
fetcher.get(Fastly::Invoice, opts)
end
# Purge all assets from this service.
def purge_all
- res = fetcher.client.post(Fastly::Service.get_path(self.id)+"/purge_all")
+ fetcher.client.post(Fastly::Service.get_path(self.id)+"/purge_all")
end
-
# Purge anything with the specific key from the given service.
def purge_by_key(key)
- res = fetcher.client.post(Fastly::Service.get_path(self.id)+"/purge/#{key}")
+ require_api_key!
+
+ fetcher.client.post(Fastly::Service.get_path(self.id)+"/purge/#{key}")
end
# Set all the versions that this service has had.
def versions=(versions)
@versions = versions