eycap 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/eycap.rb +2 -2
- data/lib/eycap/lib/ey_logger.rb +2 -2
- data/lib/eycap/recipes/database.rb +3 -1
- data/lib/eycap/recipes/deploy.rb +1 -1
- data/lib/eycap/recipes/slice.rb +3 -3
- metadata +12 -3
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== 0.5.7 / 2009-6-17
|
2
|
+
* updated database tasks - new xCloud infrastructure requires staging databases to use master not replica for tasks
|
3
|
+
|
1
4
|
== 0.5.6 / 2009-6-17
|
2
5
|
* updated bundler task so it won't install test or development gems
|
3
6
|
* updated database tasks - based on Tyler Poland's update
|
data/lib/eycap.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Eycap
|
2
|
-
VERSION = '0.5.
|
3
|
-
end
|
2
|
+
VERSION = '0.5.7'
|
3
|
+
end
|
data/lib/eycap/lib/ey_logger.rb
CHANGED
@@ -63,7 +63,7 @@ module Capistrano
|
|
63
63
|
self.close
|
64
64
|
|
65
65
|
hooks = [:any]
|
66
|
-
hooks << self.successful? ? :success : :failure
|
66
|
+
hooks << (self.successful? ? :success : :failure)
|
67
67
|
puts "Executing Post Processing Hooks"
|
68
68
|
hooks.each do |h|
|
69
69
|
@_post_process_hooks[h].each do |key|
|
@@ -122,4 +122,4 @@ module Capistrano
|
|
122
122
|
end
|
123
123
|
|
124
124
|
end
|
125
|
-
end
|
125
|
+
end
|
@@ -39,7 +39,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
39
39
|
|
40
40
|
if @environment_info['adapter'] == 'mysql'
|
41
41
|
dbhost = @environment_info['host']
|
42
|
-
|
42
|
+
if
|
43
|
+
dbhost = environment_dbhost.sub('-master', '') + '-replica' if dbhost != 'localhost' # added for Solo offering, which uses localhost
|
44
|
+
end
|
43
45
|
run "mysqldump --add-drop-table -u #{dbuser} -h #{dbhost} -p #{environment_database} | gzip -c > #{backup_file}.gz" do |ch, stream, out |
|
44
46
|
ch.send_data "#{dbpass}\n" if out=~ /^Enter password:/
|
45
47
|
end
|
data/lib/eycap/recipes/deploy.rb
CHANGED
@@ -54,7 +54,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
54
54
|
else raise ArgumentError, "unknown migration target #{migrate_target.inspect}"
|
55
55
|
end
|
56
56
|
|
57
|
-
run "cd #{directory}; #{rake} #{framework.upcase}_ENV=#{app_env} #{migrate_env} db:migrate"
|
57
|
+
run "if [ -f #{release_path}/Gemfile ] ; then cd #{directory}; bundle exec #{rake} #{framework.upcase}_ENV=#{app_env} #{migrate_env} db:migrate ; else cd #{directory}; #{rake} #{framework.upcase}_ENV=#{app_env} #{migrate_env} db:migrate ; fi"
|
58
58
|
end
|
59
59
|
|
60
60
|
desc "Display the maintenance.html page while deploying with migrations. Then it restarts and enables the site again."
|
data/lib/eycap/recipes/slice.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
2
|
|
3
3
|
namespace :slice do
|
4
|
-
desc "Tail the Rails
|
5
|
-
task :
|
4
|
+
desc "Tail the Rails logs for your environment"
|
5
|
+
task :tail_environment_logs, :roles => :app do
|
6
6
|
run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data|
|
7
7
|
puts # for an extra line break before the host name
|
8
8
|
puts "#{channel[:server]} -> #{data}"
|
9
9
|
break if stream == :err
|
10
10
|
end
|
11
11
|
end
|
12
|
-
desc "Tail the Mongrel logs
|
12
|
+
desc "Tail the Mongrel logs for your environment"
|
13
13
|
task :tail_mongrel_logs, :roles => :app do
|
14
14
|
run "tail -f #{shared_path}/log/mongrel*.log" do |channel, stream, data|
|
15
15
|
puts # for an extra line break before the host name
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eycap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Engine Yard
|
@@ -21,9 +22,11 @@ dependencies:
|
|
21
22
|
name: capistrano
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
27
30
|
segments:
|
28
31
|
- 2
|
29
32
|
- 2
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: hoe
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 1
|
41
46
|
segments:
|
42
47
|
- 1
|
43
48
|
- 5
|
@@ -97,23 +102,27 @@ rdoc_options:
|
|
97
102
|
require_paths:
|
98
103
|
- lib
|
99
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
100
106
|
requirements:
|
101
107
|
- - ">="
|
102
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
103
110
|
segments:
|
104
111
|
- 0
|
105
112
|
version: "0"
|
106
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
107
115
|
requirements:
|
108
116
|
- - ">="
|
109
117
|
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
110
119
|
segments:
|
111
120
|
- 0
|
112
121
|
version: "0"
|
113
122
|
requirements: []
|
114
123
|
|
115
124
|
rubyforge_project: eycap
|
116
|
-
rubygems_version: 1.3.
|
125
|
+
rubygems_version: 1.3.7
|
117
126
|
signing_key:
|
118
127
|
specification_version: 2
|
119
128
|
summary: Capistrano tasks for Engine Yard private cloud.
|