engineyard-cloud-client 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/engineyard-cloud-client/models/deployment.rb +6 -2
- data/lib/engineyard-cloud-client/models/environment.rb +4 -0
- data/lib/engineyard-cloud-client/test/fake_awsm/models/deployment.rb +1 -0
- data/lib/engineyard-cloud-client/test/fake_awsm/views/deployment.rabl +1 -1
- data/lib/engineyard-cloud-client/version.rb +1 -1
- data/spec/engineyard-cloud-client/integration/deployment_spec.rb +3 -0
- metadata +4 -4
@@ -4,7 +4,7 @@ require 'stringio'
|
|
4
4
|
|
5
5
|
module EY
|
6
6
|
class CloudClient
|
7
|
-
class Deployment < ApiStruct.new(:id, :app_environment, :created_at, :commit, :finished_at, :migrate_command, :ref, :resolved_ref, :successful, :user_name, :extra_config)
|
7
|
+
class Deployment < ApiStruct.new(:id, :app_environment, :created_at, :commit, :finished_at, :migrate_command, :ref, :resolved_ref, :successful, :user_name, :extra_config, :serverside_version)
|
8
8
|
def self.api_root(app_id, environment_id)
|
9
9
|
"/apps/#{app_id}/environments/#{environment_id}/deployments"
|
10
10
|
end
|
@@ -61,7 +61,11 @@ module EY
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def start
|
64
|
-
params = {
|
64
|
+
params = {
|
65
|
+
:migrate => migrate,
|
66
|
+
:ref => ref,
|
67
|
+
:serverside_version => serverside_version,
|
68
|
+
}
|
65
69
|
params[:migrate_command] = migrate_command if migrate
|
66
70
|
post_to_api(params)
|
67
71
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
object @deployment
|
2
|
-
attributes :id, :ref, :resolved_ref, :commit, :user_name, :migrate_command, :created_at, :finished_at, :successful
|
2
|
+
attributes :id, :ref, :resolved_ref, :commit, :user_name, :migrate_command, :created_at, :finished_at, :successful, :serverside_version
|
@@ -19,9 +19,11 @@ describe EY::CloudClient::AppEnvironment do
|
|
19
19
|
:migrate => true,
|
20
20
|
:migrate_command => 'rake migrate',
|
21
21
|
:extra_config => {'extra' => 'config'},
|
22
|
+
:serverside_version => '2.0.3',
|
22
23
|
})
|
23
24
|
deployment.commit.should be_nil
|
24
25
|
deployment.resolved_ref.should be_nil
|
26
|
+
deployment.serverside_version.should == '2.0.3'
|
25
27
|
|
26
28
|
deployment.created_at.should be_nil
|
27
29
|
deployment.finished_at.should be_nil
|
@@ -46,6 +48,7 @@ describe EY::CloudClient::AppEnvironment do
|
|
46
48
|
found_dep = @app_env.last_deployment
|
47
49
|
found_dep.id.should == deployment.id
|
48
50
|
found_dep.should be_finished
|
51
|
+
found_dep.serverside_version.should == '2.0.3'
|
49
52
|
end
|
50
53
|
|
51
54
|
it "returns nil when a not found deployment is requested" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-cloud-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -351,7 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
351
351
|
version: '0'
|
352
352
|
segments:
|
353
353
|
- 0
|
354
|
-
hash:
|
354
|
+
hash: -3497272709251376043
|
355
355
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
356
356
|
none: false
|
357
357
|
requirements:
|
@@ -360,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
360
|
version: '0'
|
361
361
|
segments:
|
362
362
|
- 0
|
363
|
-
hash:
|
363
|
+
hash: -3497272709251376043
|
364
364
|
requirements: []
|
365
365
|
rubyforge_project:
|
366
366
|
rubygems_version: 1.8.24
|