Sha256: 441e8f2bd461404374d18f2604fad50891f829ce2f50482f2db73397b94cbd05

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

module Aptible
  module Api
    class Vhost < Resource
      belongs_to :service
      has_many :operations

      field :id
      field :virtual_domain
      field :certificate
      field :private_key
      field :type
      field :elastic_load_balancer_name
      field :external_host
      field :external_http_port
      field :external_https_port
      field :internal_host
      field :internal_http_port
      field :internal_https_port
      field :docker_name
      field :created_at, type: Time
      field :updated_at, type: Time
      field :status
      field :default

      def account
        service.account
      end

      def provisioned?
        status == 'provisioned'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aptible-api-0.7.14 lib/aptible/api/vhost.rb
aptible-api-0.7.13 lib/aptible/api/vhost.rb
aptible-api-0.7.12 lib/aptible/api/vhost.rb
aptible-api-0.7.11 lib/aptible/api/vhost.rb
aptible-api-0.7.10 lib/aptible/api/vhost.rb