mobilize-ssh 1.0.94 → 1.0.95

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.
@@ -44,8 +44,8 @@ module Mobilize
44
44
 
45
45
  def Ssh.set_key_permissions(key_path)
46
46
  #makes sure permissions are set as appropriate for ssh key
47
- "chmod a-rwx #{key_path}".bash
48
- "chmod u+rw #{key_path}".bash
47
+ raise "could not find ssh key at #{key_path}" unless File.exists?(key_path)
48
+ File.chmod(0600,key_path) unless File.stat(key_path).mode.to_s(8)[3..5] == "600"
49
49
  return true
50
50
  end
51
51
 
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Ssh
3
- VERSION = "1.0.94"
3
+ VERSION = "1.0.95"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.94
4
+ version: 1.0.95
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-08 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mobilize-base