postgresinator 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ namespace :pg do
88
88
  execute "mkdir", "-p", fetch(:postgres_data_path),
89
89
  fetch(:postgres_socket_path), fetch(:postgres_config_path)
90
90
  ["#{fetch(:deploy_to)}/..", fetch(:deploy_to), shared_path].each do |dir|
91
- execute("chown", "#{fetch(:deployment_user_id)}:#{unix_user_get_gid(fetch(:webserver_username))}", dir.to_s)
91
+ execute("chown", "#{fetch(:deployment_username)}:#{unix_user_get_gid(fetch(:webserver_username))}", dir.to_s)
92
92
  execute("chmod", "2750", dir.to_s)
93
93
  end
94
94
  # chown everything
@@ -67,7 +67,9 @@ namespace :postgresinator do
67
67
  on roles(:all) do |h|
68
68
  on "#{fetch(:preexisting_ssh_user)}@#{h}" do |host|
69
69
  as :root do
70
- deployment_user_setup(fetch(:postgres_templates_path))
70
+ path = fetch(:deploy_templates_path, nil)
71
+ path = fetch(:postgres_templates_path) if path.nil?
72
+ deployment_user_setup(path)
71
73
  end
72
74
  end
73
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postgresinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2015-01-17 00:00:00.000000000 Z
12
+ date: 2015-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano