rails_pwnerer 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/pwnage/app/svn.rb +8 -0
- data/rails_pwnerer.gemspec +3 -3
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
v0.6.17. Doing svn revert on config/ on updates, so svn doesn't complain about conflicts.
|
2
|
+
|
1
3
|
v0.6.16. Require enable_db_reset configuration flag for db_reset (dangerous operation).
|
2
4
|
|
3
5
|
v0.6.15. Running hooks ending in _su as super-user. Fixed base bug that didn't reload nginx configs.
|
data/lib/pwnage/app/svn.rb
CHANGED
@@ -122,6 +122,13 @@ class RailsPwnage::App::Svn
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
end
|
125
|
+
|
126
|
+
# reverts the config changes made by rpwn, so svn update doesn't get confused
|
127
|
+
def revert_config_changes(app_name, instance_name)
|
128
|
+
Dir.chdir RailsPwnage::Config[app_name, instance_name][:app_path] do
|
129
|
+
['config'].each { |dir| Kernel.system "svn revert --recursive #{dir}" }
|
130
|
+
end
|
131
|
+
end
|
125
132
|
|
126
133
|
def svn_update(app_name, instance_name)
|
127
134
|
Dir.chdir RailsPwnage::Config[app_name, instance_name][:app_path] do
|
@@ -155,6 +162,7 @@ class RailsPwnage::App::Svn
|
|
155
162
|
# TODO: maybe backup old version before issuing the svn update?
|
156
163
|
|
157
164
|
cleanup_app_caches(app_name, instance_name)
|
165
|
+
revert_config_changes(app_name, instance_name)
|
158
166
|
svn_update(app_name, instance_name)
|
159
167
|
end
|
160
168
|
|
data/rails_pwnerer.gemspec
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Rails_pwnerer-0.6.
|
2
|
+
# Gem::Specification for Rails_pwnerer-0.6.17
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
--- !ruby/object:Gem::Specification
|
6
6
|
name: rails_pwnerer
|
7
7
|
version: !ruby/object:Gem::Version
|
8
|
-
version: 0.6.
|
8
|
+
version: 0.6.17
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- Victor Costan
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
|
15
|
-
date: 2008-10-
|
15
|
+
date: 2008-10-05 00:00:00 -04:00
|
16
16
|
default_executable: bin/rpwn
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_pwnerer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Costan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-05 00:00:00 -04:00
|
13
13
|
default_executable: bin/rpwn
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|