capistrano-hivequeen 5.1.0 → 5.2.0

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDA5NDkzZjg5MTI5MDRlYjA1NTY3ZDc3ZjAxMzkyZTIwOTUxYjMyYg==
5
+ data.tar.gz: !binary |-
6
+ MzNmZjdjZWNjZWRkYWQ5OWI5YjQ5NjEyNmUyYjE5OTRmZDE2NzAyZA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NmRjYWY2OTM3NjYzOGZlNzE5Y2VjMTk4MmRmYjBiOGJmODZkMGUyYTE2ODYz
10
+ NmJjNzdlMTZhMzBiYTNjZjBmNTg5NzY3M2Y0ODkzMWU3M2M1YzcxMTgxNmVk
11
+ Y2Y3ZWM1ZTAzNDBkZDUwMGUzMmY3ODkwMTNkNGE3MmZmM2RiMzM=
12
+ data.tar.gz: !binary |-
13
+ Zjc0ODQ4ODZlNjM1ZWI0NDU4OWNkODVhYWFhMDkyODRhYTRlNzBiNDE4MDFj
14
+ NjFiMzNhZGZhMTVmNmVmNTc2MGZhYTM3NjUwMDdhYjEyNTcxMTYwOWNkNzIx
15
+ MzliMzkxNzhiZTU0ZGE4ZmM2YzI5MmNhNDYyNTA3ZTc2OWIyZGY=
@@ -65,26 +65,26 @@ class HiveQueen
65
65
 
66
66
  # Load credentials from ~/.hivequeen
67
67
  def get_credentials!
68
- @username, @password = File.read(credential_path).chomp.split(':')
68
+ @username, @password = File.read(credentials_path).chomp.split(':')
69
69
  raise unless username && password
70
70
  # Check that credentials are not accessible to world or group
71
- mode = File.stat(credential_path).mode
71
+ mode = File.stat(credentials_path).mode
72
72
  raise InsecureCredentials unless (mode % 64 == 0)
73
73
  rescue InsecureCredentials
74
- puts "#{credential_path} is insecure. Please change you password and run"
75
- puts "chmod 600 #{credential_path}"
74
+ puts "#{credentials_path} is insecure. Please change you password and run"
75
+ puts "chmod 600 #{credentials_path}"
76
76
  exit 1
77
77
  rescue Errno::ENOENT, RuntimeError
78
- puts "Could not read HiveQueen credentials from #{credential_path}."
79
- puts "#{credential_path} should contain your username and password seperated by a colon"
78
+ puts "Could not read HiveQueen credentials from #{credentials_path}."
79
+ puts "#{credentials_path} should contain your username and password seperated by a colon"
80
80
  puts "Run this command with your credentials:"
81
- puts " $ echo username:password > #{credential_path}; chmod 600 #{credential_path}"
81
+ puts " $ echo username:password > #{credentials_path}; chmod 600 #{credentials_path}"
82
82
  exit 1
83
83
  end
84
84
 
85
85
  protected
86
- def credential_path
87
- File.join(ENV['HOME'], '.hivequeen')
86
+ def credentials_path
87
+ ENV['HIVEQUEEN_CREDENTIALS_PATH'] || File.join(ENV['HOME'], '.hivequeen')
88
88
  end
89
89
 
90
90
  def connection
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '5.1.0'
3
+ @@version = '5.2.0'
4
4
 
5
5
  def self.to_s
6
6
  @@version
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
5
- prerelease:
4
+ version: 5.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aaron Suggs
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
11
+ date: 2013-03-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: excon
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -77,28 +70,26 @@ files:
77
70
  - lib/capistrano/hivequeen/version.rb
78
71
  homepage: http://github.com/kickstarter/capistrano-hivequeen
79
72
  licenses: []
73
+ metadata: {}
80
74
  post_install_message:
81
75
  rdoc_options:
82
76
  - --charset=UTF-8
83
77
  require_paths:
84
78
  - lib
85
79
  required_ruby_version: !ruby/object:Gem::Requirement
86
- none: false
87
80
  requirements:
88
81
  - - ! '>='
89
82
  - !ruby/object:Gem::Version
90
83
  version: '0'
91
84
  required_rubygems_version: !ruby/object:Gem::Requirement
92
- none: false
93
85
  requirements:
94
86
  - - ! '>='
95
87
  - !ruby/object:Gem::Version
96
88
  version: '0'
97
89
  requirements: []
98
90
  rubyforge_project:
99
- rubygems_version: 1.8.24
91
+ rubygems_version: 2.0.3
100
92
  signing_key:
101
93
  specification_version: 2
102
94
  summary: Capistrano extensions for interacting with HiveQueen
103
95
  test_files: []
104
- has_rdoc: