class Fastly::VCL

An internal representation of a Varnish Configuration Language file

Attributes

comment[RW]

a free form comment field

content[RW]

The content of this VCL

main[RW]

A boolean indicating if some specific VCL is the main VCL

name[RW]

The name of the uploaded VCL

service_id[RW]

The id of the service this belongs to.

version[RW]

The number of the version this belongs to.

Public Instance Methods

set_main!() click to toggle source

Set VCL as main VCL

# File lib/fastly/vcl.rb, line 45
def set_main!
  hash = fetcher.client.put("/service/#{service.id}/version/#{version_number}/vcl/#{name}/main")
  !hash.nil?
end