kondate 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/kondate/cli.rb +3 -1
- data/lib/kondate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f4016b800044110c5f1914d717121a740481abb
|
4
|
+
data.tar.gz: d2d83388b006f1df5b17dd6e1daa6f0e874b764e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ac9f32b64c6b633a88e99d3f22b7a1234817c5528f2d9eb32ca9bda6c84ffe9b79408c9157deb73e9336ff4ddac8f341bc5bdfff346e51d11d04c3afc95a4d7
|
7
|
+
data.tar.gz: 7cfd62d55909477eda7b89a174b0d153516657720db131b0a0aeca295e9abecb16d0ee2fa3f61ac57fe1f347e07242bace3fdc1e916bbbe845d571209a9dd36c
|
data/CHANGELOG.md
CHANGED
data/lib/kondate/cli.rb
CHANGED
@@ -147,7 +147,9 @@ module Kondate
|
|
147
147
|
else
|
148
148
|
# itamae itself sees Net:SSH::Config.for(host)
|
149
149
|
# here, we set ssh config if property file specially specifies
|
150
|
-
|
150
|
+
config = Net::SSH::Config.for(host, Net::SSH::Config.default_files)
|
151
|
+
# itamae fallbacks to Etc.getlogin, but we prefer to fallback to ENV['USER'], then Etc.getlogin
|
152
|
+
command << " -u #{properties['ssh_user'] || config[:user] || ENV['USER'] || ENV['LOGNAME'] || Etc.getlogin || Etc.getpwuid.name}"
|
151
153
|
command << " -i #{(Array(properties['ssh_keys']) || []).first}" if properties['ssh_keys']
|
152
154
|
command << " -p #{properties['ssh_port']}" if properties['ssh_port']
|
153
155
|
end
|
data/lib/kondate/version.rb
CHANGED