capobvious 0.3.pre23 → 0.3.pre24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capobvious/recipes/main.rb +10 -1
- data/lib/capobvious/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5114a046ef025a47522a02f4203e2baaac5da4a
|
4
|
+
data.tar.gz: bd4fa13af1d9a4e0d77499c27aaffabaa3a10179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4257acf601d8a6b5e6d531b3a3fbf002018f1db9c1d62035ead2a7854741f3aaac8aadcb9c267af525a4209c39ad429f893e8515137c0a651f1e9d3da582a020
|
7
|
+
data.tar.gz: 2a6d8ebbb61dd6133a8a546579da4a362458f0206eb0d80f4f12006f2ade7e1ab05ff14ea98e11207a21d6f31b8c8e9cca8f40976096f79047f9a5bddf874272
|
@@ -19,6 +19,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
19
19
|
_cset(:stage){ rails_env }
|
20
20
|
_cset(:application_env){ "#{application}_#{rails_env}"}
|
21
21
|
_cset(:rvm_ruby_string){ "#{ruby_version}@#{application}" }
|
22
|
+
_cset :robots_disallow, false
|
22
23
|
|
23
24
|
before 'deploy', 'rvm:install_rvm' # install/update RVM
|
24
25
|
before 'deploy', 'rvm:install_ruby' # install Ruby and create gemset (both if missing)
|
@@ -92,6 +93,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
92
93
|
logger.info rvmrc_string
|
93
94
|
put rvmrc_string, "#{latest_release}/.rvmrc"
|
94
95
|
end
|
96
|
+
|
97
|
+
desc "Create deny robots.txt"
|
98
|
+
task :robots, :roles => :web do
|
99
|
+
logger.important "CREATING DISALLOW robots.txt - do not forget to remove"
|
100
|
+
put "User-agent: *\nDisallow: /\n", "#{latest_release}/public/robots.txt"
|
101
|
+
end
|
95
102
|
end
|
96
103
|
|
97
104
|
|
@@ -107,7 +114,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
107
114
|
if exists?(:delayed_job) && fetch(:delayed_job) == true
|
108
115
|
delayed_job.restart
|
109
116
|
end
|
110
|
-
|
117
|
+
if exists?(:robots_disallow) && fetch(:robots_disallow) == true
|
118
|
+
create.robots
|
119
|
+
end
|
111
120
|
|
112
121
|
end
|
113
122
|
task :prepare do
|
data/lib/capobvious/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capobvious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.pre24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Gruzd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|