capistrano-hivequeen 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/capistrano-hivequeen.gemspec +1 -1
- data/lib/capistrano/hivequeen.rb +7 -2
- metadata +3 -3
@@ -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.
|
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
|
data/lib/capistrano/hivequeen.rb
CHANGED
@@ -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
|
-
|
14
|
-
|
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:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Suggs
|