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 +4 -4
- data/lib/aptible/api/account.rb +0 -6
- data/lib/aptible/api/database.rb +1 -0
- data/lib/aptible/api/database_image.rb +16 -0
- data/lib/aptible/api/resource.rb +1 -0
- data/lib/aptible/api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b61658a3dda5caea5b471508807b19008895c7b1
|
4
|
+
data.tar.gz: 3a12e2d5fe9ce616f685b2bc5b557a69de41941d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b1f0bc81b6c5ff22123380e05b8ad3576493f432d5a9b0de8c67a04991c7c9b4a4561923b17feda4e799223f9cde675a4aca35c1b8846a9f3bdb9b94830e29f
|
7
|
+
data.tar.gz: 2153668c27d7139dd2ec51af01e9f69d408e5069550fe1a57357ee96b4d630ad737d34ec517678eae61dfa394a237860eb2c6386315d2b672e1115f966078fb9
|
data/lib/aptible/api/account.rb
CHANGED
@@ -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
|
data/lib/aptible/api/database.rb
CHANGED
@@ -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
|
data/lib/aptible/api/resource.rb
CHANGED
@@ -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'
|
data/lib/aptible/api/version.rb
CHANGED
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.
|
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-
|
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.
|
242
|
+
rubygems_version: 2.5.1
|
242
243
|
signing_key:
|
243
244
|
specification_version: 4
|
244
245
|
summary: Ruby client for api.aptible.com
|