fezzik 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/fezify +2 -1
  2. data/lib/fezzik.rb +10 -0
  3. metadata +8 -8
data/bin/fezify CHANGED
@@ -92,8 +92,9 @@ namespace :fezzik do
92
92
  # Copy on top of previous release to optimize rsync
93
93
  rsync "-q", "--copy-dest=#{current_path}", "/tmp/#{app}/staged/", "#{target_host}:#{release_path}"
94
94
  # Copy over the appropriate configs for the target
95
+ server = target_host.gsub(/^.*@/, "")
95
96
  ["environment.rb", "environment.sh"].each do |config_file|
96
- rsync "-q", "/tmp/#{app}/#{target_host}_config/#{config_file}",
97
+ rsync "-q", "/tmp/#{app}/#{server}_config/#{config_file}",
97
98
  "#{target_host}:#{release_path}/config/#{config_file}"
98
99
  end
99
100
  end
@@ -1,4 +1,14 @@
1
1
  require "stringio"
2
+ require "thread"
3
+
4
+ # Synchronize 'puts' because it's annoying to have interleaved output when rake remote task is running
5
+ # several things at once in multiple threads (for instance: commands on multiple servers or commands as
6
+ # multiple users).
7
+ class IO
8
+ @@print_mutex = Mutex.new
9
+ alias :old_puts :puts
10
+ def puts(*args) @@print_mutex.synchronize { old_puts(*args) } end
11
+ end
2
12
 
3
13
  namespace :fezzik do
4
14
  task :run do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fezzik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-14 00:00:00.000000000Z
12
+ date: 2012-01-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &2152418940 !ruby/object:Gem::Requirement
16
+ requirement: &2168920180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152418940
24
+ version_requirements: *2168920180
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake-remote_task
27
- requirement: &2152414560 !ruby/object:Gem::Requirement
27
+ requirement: &2168919720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152414560
35
+ version_requirements: *2168919720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: colorize
38
- requirement: &2152413800 !ruby/object:Gem::Requirement
38
+ requirement: &2168919260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.5.8
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152413800
46
+ version_requirements: *2168919260
47
47
  description: A light deployment system that gets out of your way
48
48
  email: dmacdougall@gmail.com
49
49
  executables: