capistrano-postgresql 4.9.1 → 4.9.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05025c414cbf32a96adaac05679325e227c49b0d28b4a5591f250afc29575f6f
4
- data.tar.gz: a3d133437b5695ab9f076aa0b5b2ef7607ffc9dd01859e8c82697db676df82f4
3
+ metadata.gz: 80305e773c32e2e4eeaa17fc94f06554747d9e8b4e1d62475098873ee32888d6
4
+ data.tar.gz: 59444fe5adfceb315f3752aa5051f414c91f73372029e5af637453b4bdef7b54
5
5
  SHA512:
6
- metadata.gz: baac21fbc78de64a02ef991fe78303f4a40f3cfdc66bf86ffd854b4874f2b381f3f82f2c92617939ea834990ab4ab8831e5b372fa9a26cc53888486f8ded0845
7
- data.tar.gz: fc60df7f5252cc267b49267617b4084c7d54f31c423fe5d568f7a65084ccffe335dc4ea35875b3f4f352b1ed89ceab9226b19fb8be72b9849921fa32921bfedb
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,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Postgresql
3
- VERSION = '4.9.1'
3
+ VERSION = '4.9.2'
4
4
  end
5
5
  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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.1
4
+ version: 4.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic