factorylabs-fdlcap 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +14 -2
- data/VERSION +1 -1
- data/fdlcap.gemspec +1 -1
- data/lib/fdlcap/defaults.rb +4 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -17,23 +17,35 @@ Some of the recipes include:
|
|
17
17
|
- slice - tail arbitrary server logs and show custom maintenance pages
|
18
18
|
- ssh - shortcut to execute ssh sessions and tunnels to remote servers
|
19
19
|
- thinking_sphinx - set up deploy callbacks for thinking sphinx
|
20
|
+
- stages - enable capistrano-ext/multistage
|
21
|
+
- database - recipies for pulling production mysql databases locally, also can push to remote db
|
22
|
+
- thin - manage a thin deployment
|
23
|
+
- nginx - control nginx as well as generate configurations
|
20
24
|
|
21
25
|
One kind of cool addition is a simple mechanism for bundling callbacks, configuration variables, and tasks into reusable recipe chunks that can easily be dropped into your deploy configuration.
|
22
26
|
|
23
|
-
For example, to automatically set up tasks and callbacks for delayed_job and sass, you would add the following to deploy.rb:
|
27
|
+
For example, to automatically set up tasks and callbacks for stages, delayed_job and sass, you would add the following to deploy.rb:
|
24
28
|
|
25
29
|
use_recipe :delayed_job
|
26
30
|
use_recipe :sass
|
31
|
+
use_recipe :stages, :staging, :production
|
27
32
|
|
28
33
|
You can also create your own recipe chunks with the define_recipe method:
|
29
34
|
|
30
35
|
define_recipe :my_recipe do
|
31
36
|
# tasks, config, whatever go here
|
32
37
|
end
|
33
|
-
|
38
|
+
|
34
39
|
Then include them in your deploy.rb:
|
35
40
|
|
36
41
|
use_recipe :my_recipe
|
42
|
+
|
43
|
+
Recipes can also take arguments (such as in the stages recipe)
|
44
|
+
|
45
|
+
define_recipe :stages do |*stages|
|
46
|
+
set :stages, stages.flatten unless exists?(:stages) && !stages.empty?
|
47
|
+
require 'capistrano/ext/multistage'
|
48
|
+
end
|
37
49
|
|
38
50
|
==Prereqs
|
39
51
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/fdlcap.gemspec
CHANGED
data/lib/fdlcap/defaults.rb
CHANGED