capistrano-hivequeen 0.4.5 → 0.5.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.
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'capistrano-hivequeen'
9
- s.version = '0.4.5'
10
- s.date = '2011-10-07'
9
+ s.version = '0.5.0'
10
+ s.date = Time.now.strftime("%Y-%m-%d")
11
11
 
12
12
  ## Make sure your summary is short. The description may be as long
13
13
  ## as you like.
@@ -29,15 +29,19 @@ Capistrano::Configuration.instance(:must_exist).load do
29
29
 
30
30
  desc "Use environment #{name}"
31
31
  task name do
32
- set :stage, name.to_sym
33
- set :rails_env, name
34
- set :environment_id, env['id']
35
32
  environment = HiveQueen.roles(hive_queen_id)
36
33
  # Check if environment is ready
37
34
  unless environment['state'] == 'running'
38
35
  abort "Environment #{name} is not ready. State: #{environment['state']}"
39
36
  end
40
37
 
38
+ set :stage, name.to_sym
39
+ set :rails_env, name
40
+ set :environment_id, hive_queen_id
41
+ unless exists?(:branch)
42
+ set :branch, environment['branch']
43
+ end
44
+
41
45
  # Set servers for each role
42
46
  environment['roles'].each do |role_name, role_config|
43
47
  role(role_name.to_sym) { role_config['servers'] }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
8
  - 5
10
- version: 0.4.5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Suggs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-07 00:00:00 -04:00
18
+ date: 2011-10-18 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency