Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if RUBY_VERSION < '2.7'
else
gem 'activesupport', '>= 5.2'
end
# Rack 3.x requires Ruby 2.6+ (Enumerable#to_h with block)
gem 'rack', '< 3' if RUBY_VERSION < '2.6'
gem "irb", "~> 1.1"

# Specify your gem's dependencies in aptible-api.gemspec
Expand Down
2 changes: 2 additions & 0 deletions lib/aptible/api/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module Api
class Container < Resource
belongs_to :release
belongs_to :vhost
has_many :vhosts
has_many :container_vhost_memberships
belongs_to :log_drain
belongs_to :metric_drain
has_many :release_alterations
Expand Down
12 changes: 12 additions & 0 deletions lib/aptible/api/container_vhost_membership.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Aptible
module Api
class ContainerVhostMembership < Resource
belongs_to :container
belongs_to :vhost

field :id
field :created_at, type: Time
field :updated_at, type: Time
end
end
end
1 change: 1 addition & 0 deletions lib/aptible/api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def root_url
require 'aptible/api/certificate'
require 'aptible/api/configuration'
require 'aptible/api/container'
require 'aptible/api/container_vhost_membership'
require 'aptible/api/database'
require 'aptible/api/database_image'
require 'aptible/api/deployment'
Expand Down
2 changes: 1 addition & 1 deletion lib/aptible/api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Aptible
module Api
VERSION = '1.12.2'.freeze
VERSION = '1.12.3'.freeze
end
end
Loading