capistrano-hivequeen 7.1.0 → 7.2.0

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: ba99a535f7e8d11d36d5204bac5e89834e570d43
4
- data.tar.gz: 59766315ca6ca2efc488ce28786824493c7c5cdf
3
+ metadata.gz: ef392cf67ebe231297fca84b3920e46d8c687f66
4
+ data.tar.gz: 3e9a53bae0d71be1cd23e778ecb92ab2119c4cc1
5
5
  SHA512:
6
- metadata.gz: f7f7bafea0d0e25201e703907f1d652bad2d03f05a14ca411d8efbc9699ff4e4e0ffddf9e967e2713b7ce251abd9685bbc363b2c3f66378e38e2d5eb21a7b9eb
7
- data.tar.gz: 03d55182537842e2563e14f2ca184fa3d92bf9fdf996931b147ed762c2f456e5a0fe6783d2b543ccdf0852828f5b16314f07f3a26f15df30270e8008f8b3dfd1
6
+ metadata.gz: e9393582f0224bab8d0a25bfd6b5be3e7d633c91a640afd8fc13d14928bda87c8403a4b1803568f28ed74df4207009583548b1f47624945984800bc5ee375782
7
+ data.tar.gz: caf5525a2808140b11858d60ac0e1eae8c1d9a88ba4fd5c679ba1a620796a6f9d229b0b6c0dd15273c157308eb0229a114526e0e66ec1f891a1225a446f408c8
@@ -89,18 +89,38 @@ Capistrano::Configuration.instance(:must_exist).load do
89
89
  role :db, db_server.to_s, :primary => true
90
90
  end
91
91
 
92
- end
93
- end
92
+ namespace :ssh do
93
+ command_format = "ssh -t -A -l %s %s"
94
+ env['roles'].keys.each do |role_name|
95
+ task role_name do
96
+ cmd = command_format % [user, roles[role_name.to_sym].servers.first]
97
+ puts "Executing #{cmd}"
98
+ exec cmd
99
+ end
100
+ end
94
101
 
95
- namespace :ssh do
96
- HiveQueen.default_roles.each do |role_name|
97
- task role_name do
98
- cmd = "ssh -t -A -l #{user} #{roles[role_name.to_sym].servers.first}"
99
- puts "Executing #{cmd}"
100
- exec cmd
102
+ task :default do
103
+ cmd = command_format % [user, roles.values.sample.servers.sample]
104
+ puts "Executing #{cmd}"
105
+ exec cmd
106
+ end
101
107
  end
102
- end
103
108
 
109
+ namespace :console do
110
+ command_format = "ssh -t -A -l %s %s 'source /etc/profile; cd /apps/#{HiveQueen.project}/current && bundle exec rails console'"
111
+ env['roles'].keys.each do |role_name|
112
+ task role_name do
113
+ puts "Opening console"
114
+ exec command_format % [user, roles[role_name.to_sym].servers.first]
115
+ end
116
+ end
117
+
118
+ task :default do
119
+ puts "Opening console"
120
+ exec command_format % [user, roles.values.sample.servers.sample]
121
+ end
122
+ end
123
+ end
104
124
  end
105
125
 
106
126
  require 'capistrano/hivequeen/setup'
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '7.1.0'
3
+ @@version = '7.2.0'
4
4
 
5
5
  def self.to_s
6
6
  @@version
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.1.0
4
+ version: 7.2.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: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-01-29 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.2.2
119
+ rubygems_version: 2.0.14
120
120
  signing_key:
121
121
  specification_version: 2
122
122
  summary: Capistrano extensions for interacting with HiveQueen