Sha256: 9daf43cdf2d6019e688c6c46e813b5ce20857167b635f87843f05b9b20f5f4db

Contents?: true

Size: 845 Bytes

Versions: 12

Compression:

Stored size: 845 Bytes

Contents

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

      field :id
      field :virtual_domain
      field :certificate_body
      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, type: Aptible::Resource::Boolean
      field :internal, type: Aptible::Resource::Boolean

      def account
        service.account
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
aptible-api-0.9.6 lib/aptible/api/vhost.rb
aptible-api-0.9.5 lib/aptible/api/vhost.rb
aptible-api-0.9.4 lib/aptible/api/vhost.rb
aptible-api-0.9.3 lib/aptible/api/vhost.rb
aptible-api-0.9.2 lib/aptible/api/vhost.rb
aptible-api-0.9.1 lib/aptible/api/vhost.rb
aptible-api-0.9.0 lib/aptible/api/vhost.rb
aptible-api-0.8.4 lib/aptible/api/vhost.rb
aptible-api-0.8.3 lib/aptible/api/vhost.rb
aptible-api-0.8.2 lib/aptible/api/vhost.rb
aptible-api-0.8.1 lib/aptible/api/vhost.rb
aptible-api-0.8.0 lib/aptible/api/vhost.rb