rubber 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ 2.2.4 (03/05/2013)
2
+ ------------------
3
+
4
+ Bug Fixes:
5
+ =========
6
+ [mysql] Reverted the service status check since it returns a success status code even if MySQL isn't running.
7
+
8
+
1
9
  2.2.3 (03/04/2013)
2
10
  ------------------
3
11
 
@@ -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 tails a different set
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 # for an extra line break before the host name
68
- puts data
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
@@ -1,3 +1,3 @@
1
1
  module Rubber
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
@@ -134,7 +134,7 @@ namespace :rubber do
134
134
  Starts the mysql daemons
135
135
  DESC
136
136
  task :start, :roles => [:mysql_master, :mysql_slave] do
137
- rsudo "service mysql status || service mysql start"
137
+ rsudo "service mysql start"
138
138
  end
139
139
 
140
140
  desc <<-DESC
@@ -122,7 +122,7 @@ namespace :rubber do
122
122
  Starts the mysql cluster sql daemon on the sql nodes
123
123
  DESC
124
124
  task :start_sql, :roles => :mysql_sql do
125
- rsudo "service mysql status || service mysql start"
125
+ rsudo "service mysql start"
126
126
  end
127
127
 
128
128
  desc <<-DESC
@@ -147,7 +147,7 @@ namespace :rubber do
147
147
  Starts the mysql daemons
148
148
  DESC
149
149
  task :start, :roles => [:percona_master, :percona_slave] do
150
- rsudo "service mysql status || service mysql start"
150
+ rsudo "service mysql start"
151
151
  end
152
152
 
153
153
  desc <<-DESC
@@ -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.3
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-05 00:00:00.000000000 Z
13
+ date: 2013-03-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano