capistrano-hivequeen 0.6.0 → 0.7.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,7 +6,7 @@ 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.6.0'
9
+ s.version = '0.7.0'
10
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
@@ -10,8 +10,13 @@ Capistrano::Configuration.instance(:must_exist).load do
10
10
  # Redefine stage tasks from multistage extension
11
11
  # Set the list of available stages
12
12
  set :stages, HiveQueen.environment_names
13
- # When no stage is specified, use staging
14
- set :default_stage, :staging
13
+
14
+ # Default to using the current branch as the stage name
15
+ # NB: current branch may not be set
16
+ current_branch = `git symbolic-ref HEAD`.chomp.sub('refs/head/', '')
17
+ unless current_branch.empty?
18
+ set :default_stage, current_branch.to_sym
19
+ end
15
20
 
16
21
  set :repository, HiveQueen.repository
17
22
  set :scm, :git
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: 7
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 6
8
+ - 7
9
9
  - 0
10
- version: 0.6.0
10
+ version: 0.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Suggs