capobvious 0.2.9 → 0.2.91
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/capistrano/ext/capobvious.rb +11 -1
- data/lib/capobvious/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
@@ -59,7 +59,7 @@ Capistrano::Configuration.instance.load do
|
|
59
59
|
return (gemfile_lock =~ /^\s*#{name}\s+\(/)? true : false
|
60
60
|
end
|
61
61
|
|
62
|
-
VarGems = {'delayed_job' => :delayed_job, 'activerecord-postgres-hstore' => :hstore}
|
62
|
+
VarGems = {'delayed_job' => :delayed_job, 'activerecord-postgres-hstore' => :hstore, 'sitemap_generator' => :sitemap_generator}
|
63
63
|
|
64
64
|
VarGems.each do |gem,var|
|
65
65
|
gem = gem.to_s
|
@@ -120,6 +120,13 @@ Capistrano::Configuration.instance.load do
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
+
namespace :sitemap_generator do
|
124
|
+
desc 'Start rack refresh sitemap project'
|
125
|
+
task :refresh do
|
126
|
+
run "cd #{current_release} && RAILS_ENV=#{rails_env} bundle exec rake sitemap:refresh"
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
123
130
|
after "deploy:update_code", "create:dbconf"
|
124
131
|
namespace :create do
|
125
132
|
task :files do
|
@@ -158,6 +165,9 @@ Capistrano::Configuration.instance.load do
|
|
158
165
|
if exists?(:auto_migrate) && fetch(:auto_migrate) == true
|
159
166
|
db.migrate
|
160
167
|
end
|
168
|
+
if exists?(:sitemap_generator) && fetch(:sitemap_generator) == true
|
169
|
+
sitemap_generator.refresh
|
170
|
+
end
|
161
171
|
if exists?(:delayed_job) && fetch(:delayed_job) == true
|
162
172
|
delayed_job.restart
|
163
173
|
end
|
data/lib/capobvious/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capobvious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.91
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|