deploy-cli 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fdca0bc0a30fe6a4b98de52c518f3e7ab85778c
4
- data.tar.gz: d2765b70eeb9d42d6f70a7f05dcb45c5427ba971
3
+ metadata.gz: 9426daabd10e3ec44faf5248cdbc354744060f3e
4
+ data.tar.gz: f300919724141a3c23a3829c95e100aa23aa046f
5
5
  SHA512:
6
- metadata.gz: facfb01b5210a795e564ed0202e1a7fc78005c4a770725f44d1a81fe4cbf4b05d4393ca777edf5ea42bb4c25ef1a0b00a157635adeef0d95edaa1e230bc8cd17
7
- data.tar.gz: d6475471cb610ba4b56d4c2240645236b73b34894046a0e67ddf88ce3c90f130364aaf9d3bdc52d5e4db69ba1bfe50b042ec160f4657cfa0c3a4b7e5575b7b24
6
+ metadata.gz: 1b5c4021cc6033e68995506653298de6b5e554a9b447ba30d520ba0098917f204962f06542fe2d77bbab6a925f9f9907347296ebcfd6005b76efa74f280c0ee0
7
+ data.tar.gz: 5919e5e17da7f2aee483ae03a2bf830d6748b3b82417200967710ef26dfe91989da5cd4263faa81f8474c6bfbb707044ab82b77ab052c6485ebef879d66d679d
@@ -158,11 +158,13 @@ module Deploy
158
158
 
159
159
  private
160
160
  def ssh(server, cmd)
161
- full = "ssh -A #{@spec['user']}@#{server}"
162
- full += " -i #{@spec['key']}" if @spec['key']
163
- full += " 'cd #{@spec['path']} && #{cmd}'"
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
@@ -1,5 +1,5 @@
1
1
  module Deploy
2
2
 
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ptdorf