capifony 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ ### 2.2.6 / January 17, 2013
2
+
3
+ * Clear controllers should only run on the app role
4
+ * Do not update composer [Closes #309]
5
+ * Use trysudo when running a custom symfony command
6
+
1
7
  ### 2.2.5 / December 29, 2012
2
8
 
3
9
  * host specification in mysql remote operations
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
 
6
6
  symfony_version = nil
7
7
  symfony_app_path = 'app'
8
- capifony_version = '2.2.5'
8
+ capifony_version = '2.2.6'
9
9
 
10
10
  OptionParser.new do |opts|
11
11
  opts.banner = "Usage: #{File.basename($0)} [path]"
@@ -3,9 +3,10 @@ namespace :symfony do
3
3
  task :default, :roles => :app, :except => { :no_release => true } do
4
4
  prompt_with_default(:task_arguments, "cache:clear")
5
5
 
6
- stream "cd #{latest_release} && #{php_bin} #{symfony_console} #{task_arguments} --env=#{symfony_env_prod}"
6
+ stream "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} #{task_arguments} --env=#{symfony_env_prod}'"
7
7
  end
8
8
 
9
+
9
10
  namespace :logs do
10
11
  [:tail, :tail_dev].each do |action|
11
12
  lines = ENV['lines'].nil? ? '50' : ENV['lines']
@@ -115,17 +116,10 @@ namespace :symfony do
115
116
  end
116
117
 
117
118
  desc "Updates composer"
118
- task :self_update, :roles => :app, :except => { :no_release => true } do
119
- capifony_pretty_print "--> Updating Composer"
120
- run "#{try_sudo} sh -c 'cd #{latest_release} && #{composer_bin} self-update'"
121
- capifony_puts_ok
122
- end
123
119
 
124
120
  desc "Runs composer to install vendors from composer.lock file"
125
121
  task :install, :roles => :app, :except => { :no_release => true } do
126
- if composer_bin
127
- symfony.composer.self_update
128
- else
122
+ if !composer_bin
129
123
  symfony.composer.get
130
124
  set :composer_bin, "#{php_bin} composer.phar"
131
125
  end
@@ -137,9 +131,7 @@ namespace :symfony do
137
131
 
138
132
  desc "Runs composer to update vendors, and composer.lock file"
139
133
  task :update, :roles => :app, :except => { :no_release => true } do
140
- if composer_bin
141
- symfony.composer.self_update
142
- else
134
+ if !composer_bin
143
135
  symfony.composer.get
144
136
  set :composer_bin, "#{php_bin} composer.phar"
145
137
  end
@@ -151,9 +143,7 @@ namespace :symfony do
151
143
 
152
144
  desc "Dumps an optimized autoloader"
153
145
  task :dump_autoload, :roles => :app, :except => { :no_release => true } do
154
- if composer_bin
155
- symfony.composer.self_update
156
- else
146
+ if !composer_bin
157
147
  symfony.composer.get
158
148
  set :composer_bin, "#{php_bin} composer.phar"
159
149
  end
@@ -191,7 +181,7 @@ namespace :symfony do
191
181
 
192
182
  namespace :project do
193
183
  desc "Clears all non production environment controllers"
194
- task :clear_controllers do
184
+ task :clear_controllers, :roles => :app, :except => { :no_release => true } do
195
185
  capifony_pretty_print "--> Clear controllers"
196
186
 
197
187
  command = "#{try_sudo} sh -c 'cd #{latest_release} && rm -f"
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 5
10
- version: 2.2.5
9
+ - 6
10
+ version: 2.2.6
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-12-29 00:00:00 Z
19
+ date: 2013-01-16 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano