engineyard-serverside 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGQ5OTU2ODY4N2JlZjhiOGIyOWFhMTAwOGQ5MTJjZWE2N2E3NzlhMA==
4
+ ZDAwOTlhMDNiZmE4MzNmODlkNTdiNGYzY2QzNjRjNTg2MmM2NWQyZg==
5
5
  data.tar.gz: !binary |-
6
- NDM4ODJlNGE4NDc2ZDI4OWJjZjA5NDk2NmMwZWE4ZjgwY2IyZjRlMA==
6
+ ZTFkOGNhYjMxNGYxYTkyNjdhMWE2ZmZmYTRkMDNmMmU4MThiNmRmNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTA3MjE4MDZhOGIyZTUxMDBkZjE3NDU1Y2UzZGFmNWRlOGVhNzYxZTVkZTk0
10
- YjkzOTk1NDUxYzQzNWU1MDA5NzdjM2UwMzcyNGY2YjllZDUzODRiOTg1MDIy
11
- OGZiYWYwZDU5NDY0MmU1MTcwMjAzNTU0ZTZmZTY4ZWI4ZGNjYTg=
9
+ Y2M3YjY5ZmRjMDJmZTUzMWRkNzgxZTRiYWYwOGFlOWExOWY2MDY5M2ZkOTE2
10
+ ODkxNjdhZTc3MzdlNDQxOWQyNTBhNzQzNGQyNTM2ZjRmNzI3NDY4NzYxNjRj
11
+ YzRkZmZhMjE1NGJjYzUxMmQ2NzJlNzBiYjU3NDgzNzQyOTJjZmI=
12
12
  data.tar.gz: !binary |-
13
- NDYzYjUzZTg1M2FkMTk2NmM2YzZiNmEzZTk2YjNjMTE4YjgwZTA0YzY5MzU1
14
- MTk0MjY5OGY3YWM0ZmQyZDU2MzYxZGFjMzZhYzViM2M0YzMzNjczYTcyOTYy
15
- ZjI2NmVhOWRmMjQzZTM4ZDcwNDU5MmMwMmIyMGM1ZTBlNjE1YmU=
13
+ NGViZjQ4NjIyZGE4ODFmMTA3ZDRjMTg4YWRjZGVjMjI1ZGU4MDNlMTU4MDVm
14
+ ZjI1ZmRlMTdhYTU2MWI2YjI5ZjJhY2I3Njk3NGJmMDUxYWU1ZWY2MTgwMzk0
15
+ NmZlNzJiMmU2MjlmNzQyYWY5OTIyYmNlYzJhNTUzY2E5ZTUxNGI=
@@ -117,13 +117,14 @@ module EY
117
117
  init_and_propagate(integrate_options, 'integrate') do |servers, config, shell|
118
118
 
119
119
  # We have to rsync the entire app dir, so we need all the permissions to be correct!
120
- chown_command = "find #{app_dir} -not -user #{config.user} -or -not -group #{config.group} -exec chown -h #{config.user}:#{config.group} {} +"
120
+ chown_command = %|find #{app_dir} \\( -not -user #{config.user} -or -not -group #{config.group} \\) -exec chown -h #{config.user}:#{config.group} "{}" +|
121
121
  shell.logged_system("sudo sh -l -c '#{chown_command}'", servers.detect {|s| s.local?})
122
122
 
123
123
  servers.run_for_each! do |server|
124
+ chown = server.command_on_server('sudo sh -l -c', chown_command)
124
125
  sync = server.sync_directory_command(app_dir)
125
126
  clean = server.command_on_server('sh -l -c', "rm -rf #{current_app_dir}")
126
- "(#{sync}) && (#{clean})"
127
+ "(#{chown}) && (#{sync}) && (#{clean})"
127
128
  end
128
129
 
129
130
  # deploy local-ref to other instances into /data/$app/local-current
@@ -363,7 +363,7 @@ YML
363
363
  end
364
364
 
365
365
  def ensure_ownership(*targets)
366
- sudo "find #{targets.join(' ')} -not -user #{config.user} -or -not -group #{config.group} -exec chown #{config.user}:#{config.group} {} +"
366
+ sudo %|find #{targets.join(' ')} \\( -not -user #{config.user} -or -not -group #{config.group} \\) -exec chown #{config.user}:#{config.group} "{}" +|
367
367
  end
368
368
 
369
369
  # Move a symlink as atomically as we can.
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.3.3'
3
+ VERSION = '2.3.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - EY Cloud Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2013-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec