Sha256: e50e87a5f5df56c3ec810e8db9da809b9e6aa75c33e491805435b9c2e8899bb6

Contents?: true

Size: 811 Bytes

Versions: 28

Compression:

Stored size: 811 Bytes

Contents

class Ey::Core::Client::Deployment < Ey::Core::Model
  extend Ey::Core::Associations

  identity :id, type: :integer

  attribute :commit
  attribute :finished_at,    type: :time
  attribute :migrate,        type: :boolean
  attribute :migrate_command
  attribute :ref
  attribute :resolved_ref
  attribute :started_at,     type: :time
  attribute :successful,     type: :boolean
  attribute :verbose
  attribute :streaming
  attribute :request_url, aliases: :request

  has_one :account
  has_one :environment
  has_one :application
  has_one :user

  def request
    self.request_url && self.connection.requests.get(self.request_url.split("/").last)
  end

  def timeout(message=nil)
    merge_attributes(self.connection.timeout_deployment("id" => self.id, "message" => message).body["deployment"])
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/models/deployment.rb
ey-core-3.6.1 lib/ey-core/models/deployment.rb
groove-ey-core-3.6.3 lib/ey-core/models/deployment.rb
groove-ey-core-3.6.2 lib/ey-core/models/deployment.rb
groove-ey-core-3.6.1 lib/ey-core/models/deployment.rb
ey-core-3.5.0 lib/ey-core/models/deployment.rb
ey-core-3.4.4 lib/ey-core/models/deployment.rb
ey-core-3.4.2 lib/ey-core/models/deployment.rb
ey-core-3.4.1 lib/ey-core/models/deployment.rb
ey-core-3.4.0 lib/ey-core/models/deployment.rb
ey-core-3.3.1 lib/ey-core/models/deployment.rb
ey-core-3.3.0 lib/ey-core/models/deployment.rb
ey-core-3.2.6 lib/ey-core/models/deployment.rb
ey-core-3.2.5 lib/ey-core/models/deployment.rb
ey-core-3.2.4 lib/ey-core/models/deployment.rb
ey-core-3.2.3 lib/ey-core/models/deployment.rb
ey-core-3.2.2 lib/ey-core/models/deployment.rb
ey-core-3.2.1 lib/ey-core/models/deployment.rb
ey-core-3.2.0 lib/ey-core/models/deployment.rb
ey-core-3.1.11 lib/ey-core/models/deployment.rb