capistrano-postgresql 4.9.1 → 4.9.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80305e773c32e2e4eeaa17fc94f06554747d9e8b4e1d62475098873ee32888d6
|
4
|
+
data.tar.gz: 59444fe5adfceb315f3752aa5051f414c91f73372029e5af637453b4bdef7b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abca2321498fde096259461b5573b483d3b046ac9c7cb2d297f23256b816e1daf78df99f1fb51bf680547294d4eb6a9d4c3f50d0a7d09f2be46ec00fa941c5e7
|
7
|
+
data.tar.gz: 99860d8f90dda9c524c8996601bfb7cfecf49b6dc63951bcb28b1313e8bfe937bfd595bd7f82657686e23d92d940379c959bb056dcc4af144034f0e73f044ce7
|
@@ -30,6 +30,7 @@ module Capistrano
|
|
30
30
|
args.unshift("-U #{fetch(:pg_system_user)}") if fetch(:pg_without_sudo) # Add the :pg_system_user to psql command since we aren't using sudo anymore
|
31
31
|
cmd = [ :psql, "-d #{db_name}", *args ]
|
32
32
|
cmd = [ :sudo, "-u #{fetch(:pg_system_user)}", *cmd ] unless fetch(:pg_without_sudo)
|
33
|
+
puts "Executing #{cmd.flatten}"
|
33
34
|
test *cmd.flatten
|
34
35
|
#test :sudo, "-u #{fetch(:pg_system_user)} psql -d #{db_name}", *args
|
35
36
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'capistrano/postgresql/helper_methods'
|
2
2
|
require 'capistrano/postgresql/password_helpers'
|
3
3
|
require 'capistrano/postgresql/psql_helpers'
|
4
|
-
|
5
4
|
include Capistrano::Postgresql::HelperMethods
|
6
5
|
include Capistrano::Postgresql::PasswordHelpers
|
7
6
|
include Capistrano::Postgresql::PsqlHelpers
|
@@ -136,7 +135,6 @@ namespace :postgresql do
|
|
136
135
|
if test "[ -e #{archetype_database_yml_file} ]" # Archetype already exists. Just update values that changed. Make sure we don't overwrite it to protect generated passwords.
|
137
136
|
Net::SCP.upload!(self.host.hostname, self.host.user,StringIO.new(pg_template(true, download!(archetype_database_yml_file))),archetype_database_yml_file)
|
138
137
|
else
|
139
|
-
ask_for_or_generate_password if fetch(:pg_password).nil? || fetch(:pg_ask_for_password) == true # Avoid setting a random password or one from user prompt
|
140
138
|
execute :mkdir, '-pv', File.dirname(archetype_database_yml_file)
|
141
139
|
Net::SCP.upload!(self.host.hostname,self.host.user,StringIO.new(pg_template),archetype_database_yml_file)
|
142
140
|
end
|