wcc-base 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/db/psql.rake +2 -1
- data/lib/tasks/db.rake +5 -1
- data/lib/wcc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0987d6da9e987464ce9a3739be72aec8be50a52
|
4
|
+
data.tar.gz: 5dadeb9b32d67e526ee26c11ecac3b34ddced870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81be2503bbb5fdf744c07fbf46fd07bbbbe7c5a267e35cfd3367257202375bab081206aabb2475b3c9a2bedeea678f2003c54b2c098dbd1bd26f3a63849acd7a
|
7
|
+
data.tar.gz: b66eaf78e4b9d1c14f12158f760852572c3c241afd6cba539953cff00666c1c84082250f72b18f2ae83ebb20ceb6693c7833d9f0ec5f63ed143033c2b165804f
|
data/lib/tasks/db/psql.rake
CHANGED
@@ -33,7 +33,8 @@ namespace :db do
|
|
33
33
|
raise "file argument required" unless File.exists?(args[:file])
|
34
34
|
db_config = WCC::RakeHelpers.db_config
|
35
35
|
command = [
|
36
|
-
"cat #{args[:file]} |
|
36
|
+
"cat #{args[:file]} |",
|
37
|
+
WCC::RakeHelpers.db_cmd_with_password_string(["psql"], db_config['password']),
|
37
38
|
db_config['username'] ? "--username=#{db_config['username']}" : nil,
|
38
39
|
db_config['host'] ? "--host=#{db_config['host']}" : nil,
|
39
40
|
db_config['database'],
|
data/lib/tasks/db.rake
CHANGED
@@ -6,7 +6,11 @@ module WCC
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.db_cmd_with_password(cmd, pw)
|
9
|
-
|
9
|
+
`#{db_cmd_with_password_string(cmd, pw)}`
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.db_cmd_with_password_string(cmd, pw)
|
13
|
+
%{PGPASSWORD="#{pw}" #{cmd.join(" ")}}
|
10
14
|
end
|
11
15
|
|
12
16
|
def self.postgresql?
|
data/lib/wcc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Community Church
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.4.2
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: "# WCC This gem holds the base namespace and default configuration for Watermark
|