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 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.0
1
+ 0.3.1
data/fdlcap.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
@@ -1,5 +1,8 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
 
3
-
3
+ # defaults for fdl
4
+ set :scm, :git
5
+ set :keep_releases, 5
6
+ set :deploy_via, :remote_cache
4
7
 
5
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs