j-cap-recipes 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- j-cap-recipes (0.0.8)
4
+ j-cap-recipes (0.0.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -45,6 +45,38 @@ If you want to load only specified recipe:
45
45
  To run remote rails console you should update to the latest gems `capistrano-rbenv` and `capistrano-bundler`
46
46
  and run command `cap production rails:console`.
47
47
 
48
+ To setup a custom `database.yml` config you should provide the directory of the templates
49
+
50
+ ```ruby
51
+ set :template_dir, `config/deploy/templates`
52
+ ```
53
+
54
+ After you should create a file `database.yml.erb` example:
55
+
56
+ ```yaml
57
+ # store your custom template at foo/bar/database.yml.erb `set :template_dir, "foo/bar"`
58
+ #
59
+ # example of database template
60
+
61
+ base: &base
62
+ adapter: postgresql
63
+ encoding: unicode
64
+ timeout: 5000
65
+ username: deployer
66
+ password: <%#= ask(:db_password, SecureRandom.base64(6)) && fetch(:db_password) %>
67
+ host: localhost
68
+ port: 5432
69
+
70
+ test:
71
+ database: <%= fetch(:application) %>_test
72
+ <<: *base
73
+
74
+ <%= fetch(:rails_env).to_s %>:
75
+ database: <%= fetch(:application) %>_<%= fetch(:rails_env).to_s %>
76
+ <<: *base
77
+
78
+ ```
79
+
48
80
  ### Honeybadger
49
81
 
50
82
  `honeybadger:deploy` - notify the service about deploy and it would be invoked after `deploy:migrate`
@@ -1,6 +1,3 @@
1
- after 'deploy', 'honeybadger:deploy'
2
- after 'deploy:migrate', 'honeybadger:deploy'
3
-
4
1
  namespace :honeybadger do
5
2
  desc <<-DESC
6
3
  Notify Honeybadger of the deployment by running the notification on the REMOTE machine.
@@ -36,3 +33,6 @@ namespace :honeybadger do
36
33
  end
37
34
  end
38
35
  end
36
+
37
+ after 'deploy', 'honeybadger:deploy'
38
+ after 'deploy:migrate', 'honeybadger:deploy'
@@ -1,5 +1,5 @@
1
1
  module JCap
2
2
  module Recipes
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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: 2013-12-26 00:00:00.000000000 Z
12
+ date: 2014-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 2513931804051141966
118
+ hash: 4221075754137612620
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: 2513931804051141966
127
+ hash: 4221075754137612620
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 1.8.23