aptible-api 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87827d5317f0b5b250cf99d731f62fb06f35b0fa
4
- data.tar.gz: 494816ec429ddd6776442ac4069fc851b8f80382
3
+ metadata.gz: b61658a3dda5caea5b471508807b19008895c7b1
4
+ data.tar.gz: 3a12e2d5fe9ce616f685b2bc5b557a69de41941d
5
5
  SHA512:
6
- metadata.gz: 18410a180b0aa77b68f74508b5acdc4593917604a45324ebe358c19b21a9ae2f7b20c858c4646fed3b075d44e3e72fb10ee6b18822eceecac21ef3a8f4d28f24
7
- data.tar.gz: 120f71c8123b08ec2158d2089b74867e8d7e67f321fd0399d480aa6f6c6c11e6aba9a3c40c637bd3a653259daf2631f73f1ad0356c2920ff1d097b5fda5f9e1a
6
+ metadata.gz: 7b1f0bc81b6c5ff22123380e05b8ad3576493f432d5a9b0de8c67a04991c7c9b4a4561923b17feda4e799223f9cde675a4aca35c1b8846a9f3bdb9b94830e29f
7
+ data.tar.gz: 2153668c27d7139dd2ec51af01e9f69d408e5069550fe1a57357ee96b4d630ad737d34ec517678eae61dfa394a237860eb2c6386315d2b672e1115f966078fb9
@@ -30,12 +30,6 @@ module Aptible
30
30
  field :gentlemanjerry_docker_name
31
31
  field :gentlemanjerry_instance_id
32
32
 
33
- def billforward_subscription
34
- return nil if billforward_subscription_id.nil?
35
- @billforward_subscription ||=
36
- Aptible::BillForward::Subscription.find(billforward_subscription_id)
37
- end
38
-
39
33
  def production?
40
34
  type == 'production'
41
35
  end
@@ -2,6 +2,7 @@ module Aptible
2
2
  module Api
3
3
  class Database < Resource
4
4
  belongs_to :account
5
+ belongs_to :database_image
5
6
  belongs_to :current_configuration
6
7
  embeds_one :last_operation
7
8
  embeds_one :disk
@@ -0,0 +1,16 @@
1
+ module Aptible
2
+ module Api
3
+ class DatabaseImage < Resource
4
+ # has_many :databases
5
+
6
+ field :id
7
+ field :description
8
+ field :type
9
+ field :docker_repo
10
+ field :visible, type: Aptible::Resource::Boolean
11
+ field :default, type: Aptible::Resource::Boolean
12
+ field :created_at, type: Time
13
+ field :updated_at, type: Time
14
+ end
15
+ end
16
+ end
@@ -21,6 +21,7 @@ require 'aptible/api/certificate'
21
21
  require 'aptible/api/configuration'
22
22
  require 'aptible/api/container'
23
23
  require 'aptible/api/database'
24
+ require 'aptible/api/database_image'
24
25
  require 'aptible/api/disk'
25
26
  require 'aptible/api/image'
26
27
  require 'aptible/api/log_drain'
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '0.9.8'
3
+ VERSION = '0.9.9'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-01 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource
@@ -203,6 +203,7 @@ files:
203
203
  - lib/aptible/api/configuration.rb
204
204
  - lib/aptible/api/container.rb
205
205
  - lib/aptible/api/database.rb
206
+ - lib/aptible/api/database_image.rb
206
207
  - lib/aptible/api/disk.rb
207
208
  - lib/aptible/api/image.rb
208
209
  - lib/aptible/api/log_drain.rb
@@ -238,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
239
  version: '0'
239
240
  requirements: []
240
241
  rubyforge_project:
241
- rubygems_version: 2.4.5.1
242
+ rubygems_version: 2.5.1
242
243
  signing_key:
243
244
  specification_version: 4
244
245
  summary: Ruby client for api.aptible.com