Sha256: 0215aa4c74f94f7bbe05637973544813dc412e23db4eb49810d5e1e05e3715ca

Contents?: true

Size: 591 Bytes

Versions: 37

Compression:

Stored size: 591 Bytes

Contents

module Aptible
  module Api
    class App < Resource
      belongs_to :account
      belongs_to :current_configuration
      embeds_one :current_image
      embeds_one :last_operation
      embeds_one :last_deploy_operation
      has_many :configurations
      has_many :images
      has_many :operations
      has_many :vhosts
      embeds_many :services

      field :id
      field :handle
      field :git_repo
      field :created_at, type: Time
      field :updated_at, type: Time
      field :status

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
aptible-api-0.9.27 lib/aptible/api/app.rb
aptible-api-0.9.26 lib/aptible/api/app.rb
aptible-api-0.9.25 lib/aptible/api/app.rb
aptible-api-0.9.24 lib/aptible/api/app.rb
aptible-api-0.9.23 lib/aptible/api/app.rb
aptible-api-0.9.22 lib/aptible/api/app.rb
aptible-api-0.9.21 lib/aptible/api/app.rb
aptible-api-0.9.20 lib/aptible/api/app.rb
aptible-api-0.9.19 lib/aptible/api/app.rb
aptible-api-0.9.18 lib/aptible/api/app.rb
aptible-api-0.9.17 lib/aptible/api/app.rb
aptible-api-0.9.16 lib/aptible/api/app.rb
aptible-api-0.9.15 lib/aptible/api/app.rb
aptible-api-0.9.14 lib/aptible/api/app.rb
aptible-api-0.9.13 lib/aptible/api/app.rb
aptible-api-0.9.12 lib/aptible/api/app.rb
aptible-api-0.9.10 lib/aptible/api/app.rb
aptible-api-0.9.9 lib/aptible/api/app.rb
aptible-api-0.9.8 lib/aptible/api/app.rb
aptible-api-0.9.7 lib/aptible/api/app.rb