k8sflow 0.11.1 → 0.11.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
  SHA1:
3
- metadata.gz: 5d7f81f1061464ae60d0bcf9743d6bdef78b2b16
4
- data.tar.gz: 4c089229b6d406d2c6c85c1e260fca42e0655635
3
+ metadata.gz: 34abedf5764a455835ae559f2eb78bec0ba15b71
4
+ data.tar.gz: 798f35f53a9cb437ffeeab6324e567ce9b46f1a2
5
5
  SHA512:
6
- metadata.gz: 0ef6b4165b081d063a90c729e0c390882d1b5a6cc6257806aee2d0e16db656f220cd94e419736b83156113981a628f1b6e1a8985bb1cbf629745f85eff2ec510
7
- data.tar.gz: db80937c14137ee9285fe3a2b10a55a3eb24f2d1851cf4bf75024b7ea2c8aab0f13974306d5f87c48d542a93731b1034b7a26b5279c43d1983f1fea8a36fdea6
6
+ metadata.gz: 124705222df2f18e55eff593f00fab862419478724436813b47d4fc7c1a9318e8ac406f0313baa5de2ab73c8e07051573cccdac9fafdd6d0a62f9dd8f1a69b64
7
+ data.tar.gz: 7d4ee3db27dfc03aa5a84e20d4ad5652014b8889f955740f3f48692ced6fb0a102eec9ee43e769d5353c53540a5a5ac046f42f260d26522f79f2fd59ed61ea23
@@ -15,10 +15,10 @@ module K8sflow
15
15
 
16
16
  def self.call
17
17
  source_db = database(options[:source])
18
- puts "env PGSSLMODE=#{ssl?} PGPASSWORD=#{source_db[:password]} pg_dump --host #{source_db[:host]} --port #{source_db[:port]} --username #{source_db[:user]} --verbose -Z 0 --clean --format=c --no-owner --no-acl #{source_db[:database]} | env PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_restore --port #{database[:port]}--host #{database[:host]} --username #{database[:user]} --verbose --no-acl --no-owner -d #{database[:database]}"
18
+ puts "env PGSSLMODE=#{ssl?} PGPASSWORD=#{source_db[:password]} pg_dump --host #{source_db[:host]} --port #{source_db[:port]} --username #{source_db[:user]} --verbose -Z 0 --clean --format=c --no-owner --no-acl -d #{source_db[:database]} | env PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_restore --port #{database[:port]}--host #{database[:host]} --username #{database[:user]} --verbose --no-acl --no-owner -d #{database[:database]}"
19
19
  confirm_command("on #{database[:host]} overwrite the database #{database[:database]}")
20
20
 
21
- exec("env PGSSLMODE=#{ssl?} PGPASSWORD=#{source_db[:password]} pg_dump --host #{source_db[:host]} --port #{source_db[:port]} --username #{source_db[:user]} --verbose -Z 0 --clean --format=c --no-owner --no-acl #{source_db[:database]} | env PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_restore --port #{database[:port]} --host #{database[:host]} --username #{database[:user]} --verbose --no-acl --no-owner -d #{database[:database]}")
21
+ exec("env PGSSLMODE=#{ssl?} PGPASSWORD=#{source_db[:password]} pg_dump --host #{source_db[:host]} --port #{source_db[:port]} --username #{source_db[:user]} --verbose -Z 0 --clean --format=c --no-owner --no-acl -d #{source_db[:database]} | env PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_restore --port #{database[:port]} --host #{database[:host]} --username #{database[:user]} --verbose --no-acl --no-owner -d #{database[:database]}")
22
22
  end
23
23
  end
24
24
 
@@ -15,8 +15,8 @@ module K8sflow
15
15
  def self.call
16
16
  file = File.new("#{options[:dest]}/#{database[:database]}_#{database[:host]}_#{Time.now.iso8601}.dump", 'wb')
17
17
 
18
- puts "PGSSLMODE=#{ssl?} PGPASSWORD=**** pg_dump --host #{database[:host]} -p #{database[:port]} --username #{database[:user]} --verbose -Z 0 --clean --format=c --no-owner --no-acl #{database[:database]} > #{file.path}"
19
- exec("PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_dump -p #{database[:port]}--host #{database[:host]} --username #{database[:user]} --clean --format=c --no-owner --no-acl #{database[:database]} > #{file.path}")
18
+ puts ("PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_dump -p #{database[:port]} --host #{database[:host]} --username #{database[:user]} --clean --format=c --no-owner --no-acl -d #{database[:database]} > #{file.path}")
19
+ exec("PGSSLMODE=#{ssl?} PGPASSWORD=#{database[:password]} pg_dump -p #{database[:port]} --host #{database[:host]} --username #{database[:user]} --clean --format=c --no-owner --no-acl -d #{database[:database]} > #{file.path}")
20
20
 
21
21
  file.close
22
22
  end
@@ -4,10 +4,12 @@ module K8sflow
4
4
  register name: 'pg',
5
5
  description: 'Manage postgres actions'
6
6
 
7
- option :databases, "--databases KEY=postgresql_URI,KEY2=postgresql_URI2", Array, "List of preconfigured databases"
8
-
9
- option :database, '-d', '--database DATABASE', 'Database name or URI', required: true
7
+ option :database, '-d', '--database DATABASE', '[REQUIRED] Database uri or alias', required: true
10
8
  option :ssl, "--ssl", "enable sslmode"
9
+
10
+ option :databases, "--databases alias1=postgresql_URI,alias2=postgresql_URI2", Array, "Create database aliases"
11
+
12
+
11
13
  end
12
14
  end
13
15
  end
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module K8sflow
3
- VERSION = '0.11.1'
3
+ VERSION = '0.11.2'
4
4
  VERSION_NAMES = {1 => 'France II',
5
5
  2 => 'R.C. Rickmers',
6
6
  3 => 'Thomas W. Lawson',
data/lib/k8sflow.rb CHANGED
@@ -7,7 +7,8 @@ Clitopic.version = K8sflow::VERSION
7
7
  Clitopic.commands_dir = "#{__FILE__}/k8sflow/command"
8
8
  Clitopic.default_files = [File.join(Dir.getwd, ".k8sflow.yml"), File.join(Dir.home, ".k8sflow.yml")]
9
9
 
10
-
10
+ Clitopic.help_page = "https://github.com/ant31/k8sflow/wiki"
11
+ Clitopic.issue_report = "https://github.com/ant31/k8sflow/issues/new"
11
12
  require 'k8sflow/cli'
12
13
 
13
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k8sflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Legrand