capistrano-hivequeen 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.7.
|
9
|
+
s.version = '0.7.1'
|
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
@@ -13,9 +13,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
13
13
|
|
14
14
|
# Default to using the current branch as the stage name
|
15
15
|
# NB: current branch may not be set
|
16
|
-
current_branch = `git symbolic-ref HEAD`.chomp.sub('refs/
|
16
|
+
current_branch = `git symbolic-ref HEAD`.chomp.sub('refs/heads/', '')
|
17
17
|
unless current_branch.empty?
|
18
|
-
|
18
|
+
env_name = HiveQueen.environment_for_branch(current_branch)
|
19
|
+
set(:default_stage, env_name) if env_name
|
19
20
|
end
|
20
21
|
|
21
22
|
set :repository, HiveQueen.repository
|
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: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 1
|
10
|
+
version: 0.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Suggs
|