deploy-cli 0.2.7 → 0.2.8
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/lib/deploy/runner.rb +6 -4
- data/lib/deploy/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: 9426daabd10e3ec44faf5248cdbc354744060f3e
|
4
|
+
data.tar.gz: f300919724141a3c23a3829c95e100aa23aa046f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b5c4021cc6033e68995506653298de6b5e554a9b447ba30d520ba0098917f204962f06542fe2d77bbab6a925f9f9907347296ebcfd6005b76efa74f280c0ee0
|
7
|
+
data.tar.gz: 5919e5e17da7f2aee483ae03a2bf830d6748b3b82417200967710ef26dfe91989da5cd4263faa81f8474c6bfbb707044ab82b77ab052c6485ebef879d66d679d
|
data/lib/deploy/runner.rb
CHANGED
@@ -158,11 +158,13 @@ module Deploy
|
|
158
158
|
|
159
159
|
private
|
160
160
|
def ssh(server, cmd)
|
161
|
-
full = "ssh
|
162
|
-
full
|
163
|
-
full
|
161
|
+
full = "ssh #{@spec['user']}@#{server}"
|
162
|
+
full << " -o StrictHostKeyChecking=no"
|
163
|
+
full << " -o UserKnownHostsFile=/dev/null"
|
164
|
+
full << " -A" unless @spec["key"]
|
165
|
+
full << " -i #{@spec['key']}" if @spec['key']
|
166
|
+
full << " 'cd #{@spec['path']} && #{cmd}'"
|
164
167
|
output = `#{full}`.chomp
|
165
|
-
puts full
|
166
168
|
code = $?.exitstatus
|
167
169
|
abort "Command <#{full}> failed with status #{code}." if code != 0
|
168
170
|
output
|
data/lib/deploy/version.rb
CHANGED