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.
@@ -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 = { :migrate => migrate, :ref => ref }
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
@@ -102,6 +102,10 @@ module EY
102
102
  account && account.name
103
103
  end
104
104
 
105
+ def hierarchy_name
106
+ "#{account_name}/#{name}"
107
+ end
108
+
105
109
  def ssh_username=(user)
106
110
  self.username = user
107
111
  end
@@ -12,6 +12,7 @@ class Deployment
12
12
  property :ref, String
13
13
  property :successful, Boolean
14
14
  property :output, Text
15
+ property :serverside_version, String
15
16
 
16
17
  belongs_to :app_environment
17
18
 
@@ -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
@@ -1,7 +1,7 @@
1
1
  # This file is maintained by a herd of rabid monkeys with Rakes.
2
2
  module EY
3
3
  class CloudClient
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.7'
5
5
  end
6
6
  end
7
7
  # Please be aware that the monkeys like tho throw poo sometimes.
@@ -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.6
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-08-20 00:00:00.000000000 Z
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: 3999979324682847097
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: 3999979324682847097
363
+ hash: -3497272709251376043
364
364
  requirements: []
365
365
  rubyforge_project:
366
366
  rubygems_version: 1.8.24