nesquena-cap-recipes 0.2.21 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 Nathan Esquenazi
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.textile CHANGED
@@ -166,6 +166,9 @@ h3. Memcache
166
166
  h4. Configuration
167
167
 
168
168
  * memcache_init_path - path to memcache config file [default: "/etc/init.d/memcache"]
169
+ * memcache_size - the total size of memory to use [default: 64]
170
+ * memcache_port - the port to start memcache [default: '11211']
171
+ * memcache_host - the host for memcache [default: '127.0.0.1']
169
172
 
170
173
  h4. Tasks
171
174
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 21
3
2
  :major: 0
4
- :minor: 2
3
+ :minor: 3
4
+ :patch: 0
@@ -1,7 +1,5 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
2
 
3
- set :memcache_init_path, "/etc/init.d/memcached"
4
-
5
3
  # ===============================================================
6
4
  # SERVER MANAGEMENT
7
5
  # ===============================================================
@@ -1,19 +1,22 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
2
 
3
3
  set :memcache_init_path, "/etc/init.d/memcached"
4
+ set :memcache_size, '64'
5
+ set :memcache_port, '11211'
6
+ set :memcache_host, '127.0.0.1'
4
7
 
5
8
  namespace :memcache do
6
9
 
7
10
  desc "Stops the memcache server"
8
11
  task :stop, :roles => :app do
9
12
  puts "Stopping the memcache server"
10
- try_sudo "nohup /etc/init.d/memcached stop &"
13
+ try_sudo "killall -s TERM memcached"
11
14
  end
12
15
 
13
16
  desc "Starts the memcache server"
14
17
  task :start, :roles => :app do
15
18
  puts "Starting the memcache server"
16
- try_sudo "nohup /etc/init.d/memcached start &"
19
+ try_sudo "memcached -m #{memcache_size} -p #{memcache_port} -l #{memcache_host}"
17
20
  end
18
21
 
19
22
  desc "Restarts the memcache server"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesquena-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.21
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-16 00:00:00 -08:00
12
+ date: 2009-03-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -19,8 +19,9 @@ executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - README.textile
24
+ - LICENSE
24
25
  files:
25
26
  - README.textile
26
27
  - VERSION.yml
@@ -59,6 +60,7 @@ files:
59
60
  - spec/cap/helper.rb
60
61
  - spec/cap_recipes_spec.rb
61
62
  - spec/spec_helper.rb
63
+ - LICENSE
62
64
  has_rdoc: true
63
65
  homepage: http://github.com/nesquena/cap-recipes
64
66
  post_install_message: