cmds 0.2.5 → 0.2.6
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 +4 -4
- data/README.md +6 -6
- data/lib/cmds/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce280edce2a5280b59577c6ed628d1272fb56837
|
|
4
|
+
data.tar.gz: 721ae47183a85e44ae7cdc2a15457fd5f1fbdf6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71ac3174bc664c621b5abc3bbf2489f0f4eff8aee8702f2513e7770bfbe9a1051eb24724be91d6130aaff1a32c34b97d5d88761617bedb3908994f9f06d00ecf
|
|
7
|
+
data.tar.gz: f712b163665cd228bf8066fe44fb0cb73df538902b6e874ea05328762c44937e47a1d231da192798e6ce00e1e3a622ad84b097ca1f598968ddbb4995a692610a
|
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Or, "what's it look like?"...
|
|
|
36
36
|
|
|
37
37
|
- Instead of
|
|
38
38
|
|
|
39
|
-
```
|
|
39
|
+
```ruby
|
|
40
40
|
`psql \
|
|
41
41
|
--username=#{ (db_config['username'] || ENV['USER']).shellescape } \
|
|
42
42
|
#{ db_config['database'].shellescape } \
|
|
@@ -45,7 +45,7 @@ Or, "what's it look like?"...
|
|
|
45
45
|
|
|
46
46
|
write
|
|
47
47
|
|
|
48
|
-
```
|
|
48
|
+
```ruby
|
|
49
49
|
Cmds 'psql %{opts} %{db} < %{dump}',
|
|
50
50
|
db: db_config['database'],
|
|
51
51
|
dump: filepath,
|
|
@@ -65,7 +65,7 @@ Or, "what's it look like?"...
|
|
|
65
65
|
|
|
66
66
|
- Instead of
|
|
67
67
|
|
|
68
|
-
```
|
|
68
|
+
```ruby
|
|
69
69
|
`PGPASSWORD=#{ config[:password].shellescape } \
|
|
70
70
|
pg_dump \
|
|
71
71
|
--username=#{ config[:username].shellescape } \
|
|
@@ -77,7 +77,7 @@ Or, "what's it look like?"...
|
|
|
77
77
|
|
|
78
78
|
which can be really hard to pick out what's going on from a quick glance, write
|
|
79
79
|
|
|
80
|
-
```
|
|
80
|
+
```ruby
|
|
81
81
|
Cmds.new(
|
|
82
82
|
'pg_dump %{opts} %{database}',
|
|
83
83
|
kwds: {
|
|
@@ -98,7 +98,7 @@ Or, "what's it look like?"...
|
|
|
98
98
|
|
|
99
99
|
Again, with some additional comments and examples:
|
|
100
100
|
|
|
101
|
-
```
|
|
101
|
+
```ruby
|
|
102
102
|
# We're going to instantiate a new {Cmds} object this time, because we're
|
|
103
103
|
# not just providing values for the string template, we're specifying an
|
|
104
104
|
# environment variable for the child process too.
|
|
@@ -182,7 +182,7 @@ Templates are processed with "[Embedded Ruby][]" (eRuby/ERB) using the [Erubis][
|
|
|
182
182
|
For how it works check out
|
|
183
183
|
|
|
184
184
|
1. {Cmds::ERBContext}
|
|
185
|
-
2. {Cmds::
|
|
185
|
+
2. {Cmds::ShellEruby}
|
|
186
186
|
3. {Cmds#render}
|
|
187
187
|
|
|
188
188
|
******************************************************************************
|
data/lib/cmds/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cmds
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nrser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nrser
|