lib/fastly/version.rb in fastly-0.99 vs lib/fastly/version.rb in fastly-1.00
- old
+ new
@@ -126,10 +126,17 @@
# in the opts
def vcl(name, opts={})
fetcher.get_vcl(service_id, number, name, opts)
end
+ # Delete a VCL file for this Version
+ def delete_vcl(name)
+ hash = fetcher.client.delete(Fastly::Version.put_path(self)+"/vcl/" + name )
+ return nil if hash.nil?
+ return hash
+ end
+
# Validate this Version
def validate
hash = fetcher.client.get(Fastly::Version.put_path(self)+"/validate")
return !hash.nil?
end
@@ -150,6 +157,6 @@
def self.delete_path(obj)
put_path(obj)
end
end
-end
\ No newline at end of file
+end