aptible-api 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Procfile +1 -1
- data/aptible-api.gemspec +2 -1
- data/lib/aptible/api/account.rb +12 -0
- data/lib/aptible/api/app.rb +6 -0
- data/lib/aptible/api/configuration.rb +3 -0
- data/lib/aptible/api/container.rb +8 -0
- data/lib/aptible/api/database.rb +9 -0
- data/lib/aptible/api/disk.rb +12 -0
- data/lib/aptible/api/image.rb +8 -0
- data/lib/aptible/api/operation.rb +12 -0
- data/lib/aptible/api/permission.rb +3 -0
- data/lib/aptible/api/release.rb +6 -0
- data/lib/aptible/api/service.rb +10 -0
- data/lib/aptible/api/version.rb +1 -1
- data/lib/aptible/api/vhost.rb +17 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3c1d8873383401f2de1f7875843c1592939b724
|
4
|
+
data.tar.gz: 9e59a7cc67c40738b3fcec38be69eeef63d517a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314ce249c909631d60ca9a136d728bf9987970a2f1fda2f5e1f076f090f50b7e4facf4bba9144e665c723c9254cc310875f92c20ed2b582ba96ba13fae645397
|
7
|
+
data.tar.gz: 312c58ff0934ef371ab1c39a41acf573b7e0466865ca0b5ca6d4b27fbcac1f44504b134a32e6eb93a358a52cbcf77fe785447f26f0edebf7f3f43a72157c1afa
|
data/Procfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
console: bundle exec pry -r aptible/api
|
1
|
+
console: bundle exec pry -r aptible/api -r aptible/auth
|
data/aptible-api.gemspec
CHANGED
@@ -19,11 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(/^spec\//)
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'aptible-resource'
|
22
|
+
spec.add_dependency 'aptible-resource', '>= 0.2.1'
|
23
23
|
spec.add_dependency 'gem_config'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
26
26
|
spec.add_development_dependency 'aptible-tasks', '>= 0.2.0'
|
27
|
+
spec.add_development_dependency 'aptible-auth', '>= 0.5.0'
|
27
28
|
spec.add_development_dependency 'activesupport'
|
28
29
|
spec.add_development_dependency 'rake'
|
29
30
|
spec.add_development_dependency 'rspec', '~> 2.0'
|
data/lib/aptible/api/account.rb
CHANGED
@@ -6,6 +6,18 @@ module Aptible
|
|
6
6
|
has_many :disks
|
7
7
|
has_many :services
|
8
8
|
|
9
|
+
field :id
|
10
|
+
field :type
|
11
|
+
field :name
|
12
|
+
field :handle
|
13
|
+
field :number
|
14
|
+
field :type
|
15
|
+
field :activated, type: Aptible::Resource::Boolean
|
16
|
+
field :syslog_host
|
17
|
+
field :syslog_port
|
18
|
+
field :created_at, type: Time
|
19
|
+
field :updated_at, type: Time
|
20
|
+
|
9
21
|
def production?
|
10
22
|
type == 'production'
|
11
23
|
end
|
data/lib/aptible/api/app.rb
CHANGED
data/lib/aptible/api/database.rb
CHANGED
@@ -6,6 +6,15 @@ module Aptible
|
|
6
6
|
has_one :service
|
7
7
|
has_many :operations
|
8
8
|
has_many :permissions
|
9
|
+
|
10
|
+
field :id
|
11
|
+
field :handle
|
12
|
+
field :type
|
13
|
+
field :passphrase
|
14
|
+
field :connection_url
|
15
|
+
field :provisioned, type: Aptible::Resource::Boolean
|
16
|
+
field :created_at, type: Time
|
17
|
+
field :updated_at, type: Time
|
9
18
|
end
|
10
19
|
end
|
11
20
|
end
|
data/lib/aptible/api/disk.rb
CHANGED
@@ -5,6 +5,18 @@ module Aptible
|
|
5
5
|
belongs_to :database
|
6
6
|
has_many :operations
|
7
7
|
has_many :permissions
|
8
|
+
|
9
|
+
field :id
|
10
|
+
field :handle
|
11
|
+
field :ebs_volume_id
|
12
|
+
field :filesystem
|
13
|
+
field :passphrase
|
14
|
+
field :size
|
15
|
+
field :host
|
16
|
+
field :device
|
17
|
+
field :attached, type: Aptible::Resource::Boolean
|
18
|
+
field :created_at, type: Time
|
19
|
+
field :updated_at, type: Time
|
8
20
|
end
|
9
21
|
end
|
10
22
|
end
|
data/lib/aptible/api/image.rb
CHANGED
@@ -3,6 +3,18 @@ module Aptible
|
|
3
3
|
class Operation < Resource
|
4
4
|
belongs_to :resource
|
5
5
|
|
6
|
+
field :id
|
7
|
+
field :type
|
8
|
+
field :status
|
9
|
+
field :git_ref
|
10
|
+
field :docker_ref
|
11
|
+
field :env
|
12
|
+
field :container_count
|
13
|
+
field :disk_size
|
14
|
+
field :command
|
15
|
+
field :created_at, type: Time
|
16
|
+
field :updated_at, type: Time
|
17
|
+
|
6
18
|
def user
|
7
19
|
require 'aptible/auth'
|
8
20
|
|
data/lib/aptible/api/release.rb
CHANGED
data/lib/aptible/api/service.rb
CHANGED
@@ -9,6 +9,16 @@ module Aptible
|
|
9
9
|
has_many :operations
|
10
10
|
has_many :permissions
|
11
11
|
has_many :releases
|
12
|
+
|
13
|
+
field :id
|
14
|
+
field :handle
|
15
|
+
field :docker_repo
|
16
|
+
field :docker_ref
|
17
|
+
field :process_type
|
18
|
+
field :command
|
19
|
+
field :container_count
|
20
|
+
field :created_at, type: Time
|
21
|
+
field :updated_at, type: Time
|
12
22
|
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/aptible/api/version.rb
CHANGED
data/lib/aptible/api/vhost.rb
CHANGED
@@ -4,6 +4,23 @@ module Aptible
|
|
4
4
|
belongs_to :service
|
5
5
|
has_many :operations
|
6
6
|
|
7
|
+
field :id
|
8
|
+
field :virtual_domain
|
9
|
+
field :certificate
|
10
|
+
field :private_key
|
11
|
+
field :type
|
12
|
+
field :provisioned, type: Aptible::Resource::Boolean
|
13
|
+
field :elastic_load_balancer_name
|
14
|
+
field :external_host
|
15
|
+
field :external_http_port
|
16
|
+
field :external_https_port
|
17
|
+
field :internal_host
|
18
|
+
field :internal_http_port
|
19
|
+
field :internal_https_port
|
20
|
+
field :docker_name
|
21
|
+
field :created_at, type: Time
|
22
|
+
field :updated_at, type: Time
|
23
|
+
|
7
24
|
def provisioned?
|
8
25
|
provisioned
|
9
26
|
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gem_config
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: aptible-auth
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.5.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.5.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: activesupport
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|