Sha256: 16ea47bf7131fb1b9965c3649f83fd1e483b12ab25d9cd665b2f4a3adcb87f2b

Contents?: true

Size: 887 Bytes

Versions: 39

Compression:

Stored size: 887 Bytes

Contents

class Fastly
  # An internal representation of a Varnish Configuration Language file
  class VCL < BelongsToServiceAndVersion
    attr_accessor :service_id, :name, :content, :comment, :main
    ##
    # :attr: service_id
    #
    # The id of the service this belongs to.
    #

    ##
    # :attr: name
    #
    # The name of the uploaded VCL
    #

    ##
    # :attr: version
    #
    # The number of the version this belongs to.
    #

    ##
    # :attr: content
    #
    # The content of this VCL
    #

    ##
    # :attr: comment
    #
    # a free form comment field
    #

    ##
    # :attr: main
    #
    # A boolean indicating if some specific VCL is the main VCL
    #

    ##
    #
    # Set VCL as main VCL
    #
    def set_main!
      hash = fetcher.client.put("/service/#{service.id}/version/#{version_number}/vcl/#{name}/main")
      !hash.nil?
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
fastly-3.0.2 lib/fastly/vcl.rb
fastly-3.0.1 lib/fastly/vcl.rb
fastly-3.0.0 lib/fastly/vcl.rb
fastly-2.5.3 lib/fastly/vcl.rb
fastly-2.5.2 lib/fastly/vcl.rb
fastly-2.5.1 lib/fastly/vcl.rb
fastly-2.5.0 lib/fastly/vcl.rb
fastly-2.4.0 lib/fastly/vcl.rb
fastly-2.3.1 lib/fastly/vcl.rb
fastly-2.3.0 lib/fastly/vcl.rb
fastly-2.2.0 lib/fastly/vcl.rb
fastly-2.1.0 lib/fastly/vcl.rb
fastly-2.0.0 lib/fastly/vcl.rb
fastly-1.15.0 lib/fastly/vcl.rb
fastly-1.14.0 lib/fastly/vcl.rb
fastly-1.13.2 lib/fastly/vcl.rb
fastly-1.13.1 lib/fastly/vcl.rb
fastly-1.13.0 lib/fastly/vcl.rb
fastly-1.12.0 lib/fastly/vcl.rb
fastly-1.11.0 lib/fastly/vcl.rb