hercules 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/hercules.gemspec +1 -1
- data/lib/deployer.rb +3 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/hercules.gemspec
CHANGED
data/lib/deployer.rb
CHANGED
@@ -71,9 +71,10 @@ module Hercules
|
|
71
71
|
end
|
72
72
|
|
73
73
|
# Check if the project has a before trigger
|
74
|
-
|
74
|
+
# We use the map and convert methods to symbols in order to make it work with both 1.8 and 1.9
|
75
|
+
def has_before_trigger?; (!@trigger_class.nil? and @trigger_class.methods.map{|m| m.to_sym}.include?(:before_deploy)) ;end
|
75
76
|
# Check if the project has an after trigger
|
76
|
-
def has_after_trigger?; (!@trigger_class.nil? and @trigger_class.methods.include?(
|
77
|
+
def has_after_trigger?; (!@trigger_class.nil? and @trigger_class.methods.map{|m| m.to_sym}.include?(:after_deploy)) ;end
|
77
78
|
|
78
79
|
# Look for triggers in <dir>/lib/hercules_triggers.rb
|
79
80
|
# The triggers should be inside a Hercules module in the Triggers class.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hercules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 5
|
10
|
+
version: 0.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Diogo Biazus
|