rubber 2.2.3 → 2.2.4
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/CHANGELOG +8 -0
- data/lib/rubber/recipes/rubber/utils.rb +7 -3
- data/lib/rubber/version.rb +1 -1
- data/templates/mysql/config/rubber/deploy-mysql.rb +1 -1
- data/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +1 -1
- data/templates/percona/config/rubber/deploy-percona.rb +1 -1
- data/templates/torquebox/config/rubber/deploy-torquebox.rb +0 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -59,13 +59,17 @@ namespace :rubber do
|
|
59
59
|
desc <<-DESC
|
60
60
|
Live tail of rails log files for all machines
|
61
61
|
By default tails the rails logs for the current RUBBER_ENV, but one can
|
62
|
-
set FILE=/path/file.*.glob to
|
62
|
+
set FILE=/path/file.*.glob to tail a different set
|
63
63
|
DESC
|
64
64
|
task :tail_logs, :roles => :app do
|
65
|
+
last_host = ""
|
65
66
|
log_file_glob = rubber.get_env("FILE", "Log files to tail", true, "#{current_path}/log/#{Rubber.env}*.log")
|
67
|
+
trap("INT") { puts 'Exiting...'; exit 0; } # handle ctrl-c gracefully
|
66
68
|
run "tail -qf #{log_file_glob}" do |channel, stream, data|
|
67
|
-
puts
|
68
|
-
|
69
|
+
puts if channel[:host] != last_host # blank line between different hosts
|
70
|
+
host = "[#{channel.properties[:host].gsub(/\..*/, '')}]" # get left-most subdomain
|
71
|
+
data.lines { |line| puts "%-15s %s" % [host, line] } # add host name to the start of each line
|
72
|
+
last_host = channel[:host]
|
69
73
|
break if stream == :err
|
70
74
|
end
|
71
75
|
end
|
data/lib/rubber/version.rb
CHANGED
@@ -105,8 +105,6 @@ namespace :rubber do
|
|
105
105
|
rsudo "service torquebox status || service torquebox start"
|
106
106
|
end
|
107
107
|
|
108
|
-
after "deploy:restart", "rubber:torquebox:reload"
|
109
|
-
|
110
108
|
desc "Reloads the apache web server"
|
111
109
|
task :reload, :roles => :torquebox do
|
112
110
|
serial_reload
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|