engineyard-serverside 1.5.23.ruby19.2 → 1.5.23.ruby19.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -203,18 +203,20 @@ module EY
203
203
  !server.local? # of course this machine has it
204
204
  end.map do |server|
205
205
  Celluloid::Future.new do
206
+ log = {}
206
207
  unless server.gem?(ey_server_side.name, ey_server_side.version)
207
208
  (dependencies + [ey_server_side]).each do |dependency|
208
209
  unless server.gem?(dependency.name, dependency.version)
209
210
  puts "~> Installing #{dependency.name} on #{server.hostname}"
210
211
  server.copy(dependency.local_path, dependency.remote_path)
211
- server.install_gem(dependency.remote_path)
212
+ log[dependency.name] = server.install_gem(dependency.remote_path)
212
213
  end
213
214
  end
214
215
  end
216
+ log
215
217
  end
216
218
  end
217
- futures.all?{|x| x.value == true } || raise(EY::Serverside::RemoteFailure.new("Error installing engineyard-serverside dependencies"))
219
+ futures.map {|f| f.value} unless futures.empty?
218
220
  end
219
221
 
220
222
  private
@@ -231,7 +233,6 @@ module EY
231
233
 
232
234
  def dependencies
233
235
  [Dependency.new('celluloid', Celluloid::VERSION),
234
- Dependency.new('open4', Open4::VERSION),
235
236
  Dependency.new('thor', '0.13.3')]
236
237
  end
237
238
 
@@ -146,7 +146,7 @@ To fix this problem, commit your Gemfile.lock to your repository and redeploy.
146
146
  def push_code
147
147
  info "~> Pushing code to all servers"
148
148
  futures = EY::Serverside::Server.all.map do |server|
149
- Celluloid:: Future.new { server.sync_directory(config.repository_cache) }
149
+ Celluloid::Future.new { server.sync_directory(config.repository_cache) }
150
150
  end
151
151
  futures.all? {|f| f.value == true}
152
152
  end
@@ -57,13 +57,9 @@ module EY
57
57
 
58
58
  def logged_system(cmd)
59
59
  with_logfile do |log|
60
- out = verbose? ? Tee.new($stdout, log) : log
61
- err = Tee.new($stderr, log) # we always want to see errors
62
-
63
- out << ":: running #{cmd}\n"
64
-
65
- status = Open4.spawn(cmd, :out => out, :err => err)
66
- status == 0
60
+ pid = Process.spawn(cmd, :out => log, :err => log)
61
+ Process.waitpid(pid)
62
+ $?.success?
67
63
  end
68
64
  end
69
65
 
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '1.5.23.ruby19.2'
3
+ VERSION = '1.5.23.ruby19.4'
4
4
  end
5
5
  end
@@ -5,7 +5,6 @@ $LOAD_PATH.unshift File.expand_path('vendor/json_pure/lib', File.dirname(__FILE_
5
5
 
6
6
  require 'escape'
7
7
  require 'json'
8
- require 'open4'
9
8
  require 'tmpdir'
10
9
  require 'celluloid'
11
10
  require 'thor'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.23.ruby19.2
4
+ version: 1.5.23.ruby19.4
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: celluloid
16
- requirement: &2154566720 !ruby/object:Gem::Requirement
16
+ requirement: &2163606220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154566720
25
- - !ruby/object:Gem::Dependency
26
- name: open4
27
- requirement: &2154566220 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: 1.3.0
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *2154566220
24
+ version_requirements: *2163606220
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: thor
38
- requirement: &2154565720 !ruby/object:Gem::Requirement
27
+ requirement: &2163605720 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
30
  - - =
@@ -43,10 +32,10 @@ dependencies:
43
32
  version: 0.13.3
44
33
  type: :runtime
45
34
  prerelease: false
46
- version_requirements: *2154565720
35
+ version_requirements: *2163605720
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: rspec
49
- requirement: &2154565260 !ruby/object:Gem::Requirement
38
+ requirement: &2163605220 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - =
@@ -54,10 +43,10 @@ dependencies:
54
43
  version: 1.3.2
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *2154565260
46
+ version_requirements: *2163605220
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: rake
60
- requirement: &2154564800 !ruby/object:Gem::Requirement
49
+ requirement: &2163604760 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
@@ -65,7 +54,7 @@ dependencies:
65
54
  version: 0.9.2.2
66
55
  type: :development
67
56
  prerelease: false
68
- version_requirements: *2154564800
57
+ version_requirements: *2163604760
69
58
  description:
70
59
  email: cloud@engineyard.com
71
60
  executables: