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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 483a32fb1990f1b03ccdce45a75ed3762b7f83b8
4
- data.tar.gz: 033102189aa08721df093a6df778bebe531d86eb
3
+ metadata.gz: e5114a046ef025a47522a02f4203e2baaac5da4a
4
+ data.tar.gz: bd4fa13af1d9a4e0d77499c27aaffabaa3a10179
5
5
  SHA512:
6
- metadata.gz: e2b83779c56e0783124ded41bdb84db69243175ebda2054d00f9254758a3479547b7a2845025d55aeafaa77ca87eb03203fdbdec24a295e43d2f5833a49e0450
7
- data.tar.gz: 907e131155fbb45315a5cbada7a05b296e77ac588f6cb47f10275ac43736bcb0b848d2f47a8b50e70287b36fc14be280edf4d8f47f069c729a2f337691d4264c
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
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = '0.3.pre23'
2
+ VERSION = '0.3.pre24'
3
3
  end
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.pre23
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-04 00:00:00.000000000 Z
11
+ date: 2013-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano