capistrano-hivequeen 7.0.1 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/hivequeen.rb +8 -1
- data/lib/capistrano/hivequeen/version.rb +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba99a535f7e8d11d36d5204bac5e89834e570d43
|
4
|
+
data.tar.gz: 59766315ca6ca2efc488ce28786824493c7c5cdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7f7bafea0d0e25201e703907f1d652bad2d03f05a14ca411d8efbc9699ff4e4e0ffddf9e967e2713b7ce251abd9685bbc363b2c3f66378e38e2d5eb21a7b9eb
|
7
|
+
data.tar.gz: 03d55182537842e2563e14f2ca184fa3d92bf9fdf996931b147ed762c2f456e5a0fe6783d2b543ccdf0852828f5b16314f07f3a26f15df30270e8008f8b3dfd1
|
data/lib/capistrano/hivequeen.rb
CHANGED
@@ -66,11 +66,18 @@ class HiveQueen
|
|
66
66
|
|
67
67
|
# Load credentials from ~/.hivequeen
|
68
68
|
def get_credentials!
|
69
|
-
|
69
|
+
creds = ENV['HIVEQUEEN_CREDENTIALS'] || credentials_from_path
|
70
|
+
@username, @password = creds.chomp.split(':')
|
70
71
|
raise unless username && password
|
72
|
+
end
|
73
|
+
|
74
|
+
def credentials_from_path
|
71
75
|
# Check that credentials are not accessible to world or group
|
72
76
|
mode = File.stat(credentials_path).mode
|
73
77
|
raise InsecureCredentials unless (mode % 64 == 0)
|
78
|
+
|
79
|
+
File.read(credentials_path)
|
80
|
+
|
74
81
|
rescue InsecureCredentials
|
75
82
|
puts "#{credentials_path} is insecure. Please change you password and run"
|
76
83
|
puts "chmod 600 #{credentials_path}"
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-hivequeen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Suggs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: egads
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 3.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: excon
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.6.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.6.0
|
83
83
|
description: Capistrano extensions for interacting with HiveQueen
|
@@ -87,7 +87,7 @@ extensions: []
|
|
87
87
|
extra_rdoc_files:
|
88
88
|
- README.rdoc
|
89
89
|
files:
|
90
|
-
- .gitignore
|
90
|
+
- ".gitignore"
|
91
91
|
- README.rdoc
|
92
92
|
- capistrano-hivequeen.gemspec
|
93
93
|
- lib/capistrano/hivequeen.rb
|
@@ -101,22 +101,22 @@ licenses: []
|
|
101
101
|
metadata: {}
|
102
102
|
post_install_message:
|
103
103
|
rdoc_options:
|
104
|
-
- --charset=UTF-8
|
104
|
+
- "--charset=UTF-8"
|
105
105
|
require_paths:
|
106
106
|
- lib
|
107
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- -
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.2.2
|
120
120
|
signing_key:
|
121
121
|
specification_version: 2
|
122
122
|
summary: Capistrano extensions for interacting with HiveQueen
|