palmtree 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,20 @@
1
- +++ 0.0.1 2007-05-06
1
+ +++ 0.0.5 2007-05-14
2
+ + 1 enhancement:
3
+ + Add recipes for basic management of a memcached server
4
+
5
+ +++ 0.0.4 2007-05-12
6
+ + 1 enhancement:
7
+ + Use new PR2 after hooks for ferret and backgroundrb recipes
8
+
9
+ +++ 0.0.3 2007-05-12
10
+ + 1 enhancement:
11
+ + Update recipes for Capistrano 2.0 PR2
2
12
 
13
+ +++ 0.0.2 2007-05-06
14
+ + 1 bug fix:
15
+ + Fix reference to tail recipes in recipes.rb
16
+
17
+ +++ 0.0.1 2007-05-06
3
18
  + 1 major enhancement:
4
19
  + Initial release
20
+ + Include ported recipes from personal spongy gem
data/Manifest.txt CHANGED
@@ -7,6 +7,7 @@ lib/palmtree/capistrano_extensions/configuration_extensions.rb
7
7
  lib/palmtree/recipes.rb
8
8
  lib/palmtree/recipes/backgroundrb.rb
9
9
  lib/palmtree/recipes/ferret.rb
10
+ lib/palmtree/recipes/memcached.rb
10
11
  lib/palmtree/recipes/mongrel_cluster.rb
11
12
  lib/palmtree/recipes/tail.rb
12
13
  lib/palmtree/version.rb
data/README.txt CHANGED
@@ -1,3 +1,20 @@
1
1
  README for palmtree
2
2
  ===================
3
3
 
4
+ Capistrano 2.0 recipes.
5
+
6
+ Usage
7
+ =====
8
+ In your capistrano deploy.rb file add
9
+
10
+ require 'palmtree/recipes'
11
+
12
+ to add the default recipes such as `tail`. If you want to use the Ferret,
13
+ backgrounDRb or MemCached recipes these need to be explicitly required using
14
+
15
+ require 'palmtree/recipes/ferret'
16
+ require 'palmtree/recipes/memcached'
17
+ require 'palmtree/recipes/backgroundrb'
18
+
19
+ respectively.
20
+
@@ -0,0 +1,32 @@
1
+ Capistrano::Configuration.instance(true).load do
2
+ set :memcached_script, "/etc/init.d/memcached"
3
+
4
+ namespace :memcached do
5
+ desc <<-DESC
6
+ Starts a memcached server. This will use sudo \
7
+ if it can. In many cases it will be required to \
8
+ use sudo.
9
+ DESC
10
+ task :start do
11
+ run_method "#{memcached_script} start"
12
+ end
13
+
14
+ desc <<-DESC
15
+ Stops a memcached server. This will use sudo \
16
+ if it can. In many cases it will be required to \
17
+ use sudo.
18
+ DESC
19
+ task :stop do
20
+ run_method "#{memcached_script} stop"
21
+ end
22
+
23
+ desc <<-DESC
24
+ Restarts a memcached server. This will use sudo \
25
+ if it can. In many cases it will be required to \
26
+ use sudo.
27
+ DESC
28
+ task :restart do
29
+ run_method "#{memcached_script} restart"
30
+ end
31
+ end
32
+ end
@@ -2,7 +2,7 @@ module Palmtree #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: palmtree
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.4
7
- date: 2007-05-12 00:00:00 +01:00
6
+ version: 0.0.5
7
+ date: 2007-05-14 00:00:00 +01:00
8
8
  summary: Collection of Capistrano recipes
9
9
  require_paths:
10
10
  - lib
@@ -38,6 +38,7 @@ files:
38
38
  - lib/palmtree/recipes.rb
39
39
  - lib/palmtree/recipes/backgroundrb.rb
40
40
  - lib/palmtree/recipes/ferret.rb
41
+ - lib/palmtree/recipes/memcached.rb
41
42
  - lib/palmtree/recipes/mongrel_cluster.rb
42
43
  - lib/palmtree/recipes/tail.rb
43
44
  - lib/palmtree/version.rb