obbistrano 1.1.23 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +8 -26
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -108,7 +108,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
108
108
|
# DEPLOYING APPLICATIONS
|
109
109
|
# =============================================================================
|
110
110
|
|
111
|
-
task :deploy do
|
111
|
+
task :deploy, :roles =>[:web] do
|
112
112
|
host.config_check
|
113
113
|
deploy_check
|
114
114
|
php_wax_deploy if defined? "#{phpwax}"
|
@@ -117,13 +117,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
117
117
|
bundle.js
|
118
118
|
end
|
119
119
|
|
120
|
-
task :deploy_check do
|
120
|
+
task :deploy_check, :roles =>[:web] do
|
121
121
|
fetch "repository" rescue abort "You have not specified a repository for this application"
|
122
122
|
git_deploy if repository.include? "git"
|
123
123
|
svn_deploy if repository.include? "svn"
|
124
124
|
end
|
125
125
|
|
126
|
-
task :git_deploy do
|
126
|
+
task :git_deploy, :roles =>[:web] do
|
127
127
|
logger.level = 2
|
128
128
|
logger.info "Deploying application from #{repository} on branch #{branch}"
|
129
129
|
logger.level = -1
|
@@ -147,11 +147,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
147
147
|
logger.info "Application has been updated on branch #{branch}"
|
148
148
|
end
|
149
149
|
|
150
|
-
task :svn_deploy do
|
150
|
+
task :svn_deploy, :roles =>[:web] do
|
151
151
|
run "svn export #{repository} #{deploy_to} --force"
|
152
152
|
end
|
153
153
|
|
154
|
-
task :cms_deploy do
|
154
|
+
task :cms_deploy, :roles =>[:web] do
|
155
155
|
logger.level = -1
|
156
156
|
run "mkdir -p #{deploy_to}/plugins/cms"
|
157
157
|
begin
|
@@ -176,7 +176,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
176
176
|
end
|
177
177
|
|
178
178
|
|
179
|
-
task :php_wax_deploy do
|
179
|
+
task :php_wax_deploy, :roles =>[:web] do
|
180
180
|
logger.level = -1
|
181
181
|
run "mkdir -p #{deploy_to}/wax"
|
182
182
|
begin
|
@@ -201,35 +201,17 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
201
201
|
end
|
202
202
|
|
203
203
|
|
204
|
-
task :css_build do
|
205
|
-
set :css_files, Dir.glob("**/*.css") if !defined? "#{css_files}"
|
206
|
-
run "cd #{deploy_to} && rm -f public/stylesheets/build.css"
|
207
|
-
css_files.each do |f|
|
208
|
-
run "cd #{deploy_to} && cat #{f} >> #{deploy_to}/public/stylesheets/build.css"
|
209
|
-
end
|
210
|
-
end
|
211
|
-
|
212
|
-
task :js_build do
|
213
|
-
set :js_files, Dir.glob("**/*.js") if !defined? "#{js_files}"
|
214
|
-
run "cd #{deploy_to} && rm -f public/javascripts/build.js"
|
215
|
-
js_files.each do |f|
|
216
|
-
run "cd #{deploy_to} && cat #{f} >> #{deploy_to}/public/javascripts/build.js"
|
217
|
-
end
|
218
|
-
end
|
219
|
-
####### ##############
|
220
|
-
|
221
|
-
|
222
204
|
# =============================================================================
|
223
205
|
# GENERAL ADMIN FOR APPLICATIONS
|
224
206
|
# =============================================================================
|
225
207
|
|
226
208
|
desc "Clears the application's cache files from tmp/cache."
|
227
|
-
task :clearcache do
|
209
|
+
task :clearcache, :roles =>[:web] do
|
228
210
|
run "cd #{deploy_to} && rm -f tmp/cache/*"
|
229
211
|
end
|
230
212
|
|
231
213
|
desc "Clears the application's log files from tmp/log."
|
232
|
-
task :clearlogs do
|
214
|
+
task :clearlogs, :roles =>[:web] do
|
233
215
|
run "cd #{deploy_to} && rm -f tmp/log/*"
|
234
216
|
end
|
235
217
|
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.24"
|
6
6
|
s.authors = ["Ross Riley", "One Black Bear"]
|
7
7
|
s.date = Time.now
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|