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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f7914574135166984620bac823d42f06164c7ba
4
- data.tar.gz: bff0ea8cf8843b10f9e9571b81d3e147758457bb
3
+ metadata.gz: a3c1d8873383401f2de1f7875843c1592939b724
4
+ data.tar.gz: 9e59a7cc67c40738b3fcec38be69eeef63d517a9
5
5
  SHA512:
6
- metadata.gz: 7dbbb0798a405ddeca24b0fd2ca31d7a2271f6b2121c2a1f267cee5cf6647265795af60e15a48248489301c002f1ba62396089e9bb4443a5e2c091db761912c4
7
- data.tar.gz: e5c4250d1572130d052d9a3d7e71e79ab51f8b21a57035aa76eeb8d83827a1dd06a9a2a9bc37f3e5bba1261a4ad2e6bf8c662323affc6865ee9dd963994668cb
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'
@@ -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
@@ -9,6 +9,12 @@ module Aptible
9
9
  has_many :operations
10
10
  has_many :permissions
11
11
  has_many :services
12
+
13
+ field :id
14
+ field :handle
15
+ field :git_repo
16
+ field :created_at, type: Time
17
+ field :updated_at, type: Time
12
18
  end
13
19
  end
14
20
  end
@@ -2,6 +2,9 @@ module Aptible
2
2
  module Api
3
3
  class Configuration < Resource
4
4
  belongs_to :resource
5
+
6
+ field :id
7
+ field :env
5
8
  end
6
9
  end
7
10
  end
@@ -2,6 +2,14 @@ module Aptible
2
2
  module Api
3
3
  class Container < Resource
4
4
  belongs_to :release
5
+
6
+ field :id
7
+ field :host
8
+ field :port
9
+ field :status
10
+ field :docker_name
11
+ field :created_at, type: Time
12
+ field :updated_at, type: Time
5
13
  end
6
14
  end
7
15
  end
@@ -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
@@ -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
@@ -2,6 +2,14 @@ module Aptible
2
2
  module Api
3
3
  class Image < Resource
4
4
  belongs_to :app
5
+
6
+ field :id
7
+ field :git_repo
8
+ field :git_ref
9
+ field :docker_repo
10
+ field :docker_ref
11
+ field :created_at, type: Time
12
+ field :updated_at, type: Time
5
13
  end
6
14
  end
7
15
  end
@@ -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
 
@@ -2,6 +2,9 @@ module Aptible
2
2
  module Api
3
3
  class Permission < Resource
4
4
  belongs_to :resource
5
+
6
+ field :id
7
+ field :scope
5
8
  end
6
9
  end
7
10
  end
@@ -3,6 +3,12 @@ module Aptible
3
3
  class Release < Resource
4
4
  belongs_to :service
5
5
  has_many :containers
6
+
7
+ field :id
8
+ field :docker_repo
9
+ field :docker_ref
10
+ field :created_at, type: Time
11
+ field :updated_at, type: Time
6
12
  end
7
13
  end
8
14
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
@@ -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.0
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-20 00:00:00.000000000 Z
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: '0'
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: '0'
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