recipiez 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
@@ -23,6 +23,15 @@ 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 mongoid.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
+ task :render_mongo_file do
28
+ location = fetch(:template_dir, "config") + "/mongoid.#{rails_env}.erb"
29
+ template = File.read(location)
30
+ config = ERB.new(template)
31
+
32
+ put config.result(binding), "#{release_path}/config/mongoid.yml.production"
33
+ end
34
+
26
35
  desc "Rename db file for deployment."
27
36
  task :rename_settings_file do
28
37
  run "cp #{release_path}/config/settings.yml.#{rails_env} #{release_path}/config/settings.yml"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 5
9
- version: 0.6.5
8
+ - 6
9
+ version: 0.6.6
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-04 00:00:00 +02:00
17
+ date: 2014-06-10 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency