caploy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Capistrano::Configuration.instance.load do
2
+
3
+ namespace :memcache do
4
+ %(start stop restart status).each do |step|
5
+ desc "#{step} memcache"
6
+ task step do
7
+ try_sudo "service memcached #{step}"
8
+ end
9
+ end
10
+
11
+ desc "Flush memcache"
12
+ task :flush do
13
+ run %Q{echo "flush_all" | nc -q 2 127.0.0.1 11211}
14
+ end
15
+
16
+ after "deploy:restart", "memcache:flush"
17
+ after "deploy:start", "memcache:flush"
18
+ end
19
+
20
+ end
@@ -1,3 +1,3 @@
1
1
  module Caploy
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-17 00:00:00.000000000 Z
12
+ date: 2012-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gemcutter
@@ -174,6 +174,7 @@ files:
174
174
  - lib/caploy/recipes/database.rb
175
175
  - lib/caploy/recipes/defaults.rb
176
176
  - lib/caploy/recipes/info.rb
177
+ - lib/caploy/recipes/memcache.rb
177
178
  - lib/caploy/recipes/monitoring.rb
178
179
  - lib/caploy/recipes/nginx.rb
179
180
  - lib/caploy/recipes/paperclip.rb