capistrano-hivequeen 2.3.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,10 @@ class HiveQueen
20
20
  @project_data ||= get("/projects/#{project}.json")
21
21
  end
22
22
 
23
+ def default_roles
24
+ @project_data['default_roles']
25
+ end
26
+
23
27
  def environments
24
28
  project_data['environments']
25
29
  end
@@ -82,6 +82,18 @@ Capistrano::Configuration.instance(:must_exist).load do
82
82
 
83
83
  end
84
84
  end
85
+
86
+ namespace :ssh do
87
+ HiveQueen.default_roles.each do |role_name|
88
+ task role_name do
89
+ cmd = "ssh -t -A -l #{user} #{roles[role_name.to_sym].servers.first}"
90
+ puts "Executing #{cmd}"
91
+ exec cmd
92
+ end
93
+ end
94
+
95
+ end
96
+
85
97
  require 'capistrano/hivequeen/setup'
86
98
  require 'capistrano/hivequeen/deploy'
87
99
 
@@ -106,6 +106,5 @@ Capistrano::Configuration.instance.load do
106
106
  end
107
107
 
108
108
  end
109
-
110
109
  end
111
110
  end
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '2.3.1'
3
+ @@version = '2.4.0'
4
4
 
5
5
  def self.to_s
6
6
  @@version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
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: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano