lib/fastly/version.rb in fastly-1.1.0 vs lib/fastly/version.rb in fastly-1.1.1

- old
+ new

@@ -124,9 +124,14 @@ hash = fetcher.client.post(Fastly::Version.put_path(self)+"/vcl", :name => name, :content => content) return nil if hash.nil? return Fastly::VCL.new(hash, fetcher) end + # Upload a VCL file for this Version and set as the main VCL + def upload_main_vcl(name, contents) + upload_vcl(name, contents).set_main! + end + # Get the named VCL for this version # # Won't return the content of the VCL unless you pass in # :include_content => true # in the opts