recipiez 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/deployment_recipiez.rb +3 -3
- metadata +3 -3
data/lib/recipiez/version.rb
CHANGED
@@ -23,13 +23,13 @@ namespace :recipiez do
|
|
23
23
|
run "cp #{release_path}/config/database.#{rails_env} #{release_path}/config/database.yml"
|
24
24
|
end
|
25
25
|
|
26
|
-
desc "Render
|
26
|
+
desc "Render {custom_config_template_name}.yml, you need to set :dynamic_replicaset_info as a string eg. ['1.2.3.4:27017', '2.3.4.5:27017', '6.7.8.9:27017']"
|
27
27
|
task :render_mongo_file do
|
28
|
-
location = fetch(:template_dir, "config") + "
|
28
|
+
location = fetch(:template_dir, "config") + "/#{custom_config_template_name}.#{rails_env}.erb"
|
29
29
|
template = File.read(location)
|
30
30
|
config = ERB.new(template)
|
31
31
|
|
32
|
-
put config.result(binding), "#{release_path}/config
|
32
|
+
put config.result(binding), "#{release_path}/config/#{custom_config_template_name}.yml"
|
33
33
|
end
|
34
34
|
|
35
35
|
desc "Rename db file for deployment."
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 9
|
9
|
+
version: 0.6.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alastair Brunton
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2014-06-
|
17
|
+
date: 2014-06-13 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|