capifony 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/bin/capifony +1 -1
- data/lib/capifony_symfony2.rb +16 -1
- data/lib/symfony1/database.rb +4 -0
- data/lib/symfony2/symfony.rb +6 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 2.2.3 / November 28, 2012
|
2
|
+
|
3
|
+
* #273. Create only one run call in the task and Tests
|
4
|
+
* #273. Make mor flexible clear_controllers
|
5
|
+
* Ensure the remote database password is not logged in plaintext
|
6
|
+
* Create a new variable to allow execute set_permissions automatically
|
7
|
+
|
1
8
|
### 2.2.2 / November 13, 2012
|
2
9
|
|
3
10
|
* test when running symfony:composer:{install,update} with enabled copy_vendors
|
data/bin/capifony
CHANGED
data/lib/capifony_symfony2.rb
CHANGED
@@ -84,6 +84,9 @@ module Capifony
|
|
84
84
|
|
85
85
|
# Need to clear *_dev controllers
|
86
86
|
set :clear_controllers, true
|
87
|
+
|
88
|
+
# Controllers to clear
|
89
|
+
set :controllers_to_clear, ['app_*.php']
|
87
90
|
|
88
91
|
# Files that need to remain the same between deploys
|
89
92
|
set :shared_files, false
|
@@ -103,6 +106,9 @@ module Capifony
|
|
103
106
|
# Method used to set permissions (:chmod, :acl, or :chown)
|
104
107
|
set :permission_method, false
|
105
108
|
|
109
|
+
# Execute set permissions
|
110
|
+
set :use_set_permissions, false
|
111
|
+
|
106
112
|
# Model manager: (doctrine, propel)
|
107
113
|
set :model_manager, "doctrine"
|
108
114
|
|
@@ -213,6 +219,10 @@ module Capifony
|
|
213
219
|
|
214
220
|
symfony.bootstrap.build
|
215
221
|
|
222
|
+
if use_set_permissions
|
223
|
+
symfony.deploy.set_permissions
|
224
|
+
end
|
225
|
+
|
216
226
|
if model_manager == "propel"
|
217
227
|
symfony.propel.build.model
|
218
228
|
end
|
@@ -236,8 +246,13 @@ module Capifony
|
|
236
246
|
if dump_assetic_assets
|
237
247
|
symfony.assetic.dump # Dump assetic assets
|
238
248
|
end
|
239
|
-
|
249
|
+
|
240
250
|
if clear_controllers
|
251
|
+
# If clear_controllers is an array set controllers_to_clear,
|
252
|
+
# else use the default value 'app_*.php'
|
253
|
+
if clear_controllers.is_a? Array
|
254
|
+
set(:controllers_to_clear) { clear_controllers }
|
255
|
+
end
|
241
256
|
symfony.project.clear_controllers
|
242
257
|
end
|
243
258
|
end
|
data/lib/symfony1/database.rb
CHANGED
@@ -12,7 +12,11 @@ namespace :database do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
sql_dump_cmd = generate_sql_command('dump', config)
|
15
|
+
logger.debug sql_dump_cmd.gsub(/(--password=)([^ ]+)/, '\1\'********\'') # Log the command with a masked password
|
16
|
+
saved_log_level = logger.level
|
17
|
+
logger.level = Capistrano::Logger::IMPORTANT # Change log level so that the real command (containing a plaintext password) is not displayed
|
15
18
|
try_sudo "#{sql_dump_cmd} | gzip -c > #{file}"
|
19
|
+
logger.level = saved_log_level
|
16
20
|
|
17
21
|
require "fileutils"
|
18
22
|
FileUtils.mkdir_p("backups")
|
data/lib/symfony2/symfony.rb
CHANGED
@@ -193,8 +193,13 @@ namespace :symfony do
|
|
193
193
|
desc "Clears all non production environment controllers"
|
194
194
|
task :clear_controllers do
|
195
195
|
capifony_pretty_print "--> Clear controllers"
|
196
|
+
|
197
|
+
command = "#{try_sudo} sh -c 'cd #{latest_release} && rm -f"
|
198
|
+
controllers_to_clear.each do |link|
|
199
|
+
command += " #{web_path}/" + link
|
200
|
+
end
|
201
|
+
run command + "'"
|
196
202
|
|
197
|
-
run "#{try_sudo} sh -c 'cd #{latest_release} && rm -f #{web_path}/app_*.php'"
|
198
203
|
capifony_puts_ok
|
199
204
|
end
|
200
205
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capifony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 2.2.
|
9
|
+
- 3
|
10
|
+
version: 2.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Konstantin Kudryashov
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-11-
|
19
|
+
date: 2012-11-28 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: capistrano
|