git-runner 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git-runner/base.rb +6 -0
- data/lib/git-runner/instruction.rb +2 -1
- data/lib/git-runner/version.rb +1 -1
- metadata +1 -1
data/lib/git-runner/base.rb
CHANGED
@@ -9,6 +9,7 @@ module GitRunner
|
|
9
9
|
|
10
10
|
def run
|
11
11
|
begin
|
12
|
+
load_git_runner_gems
|
12
13
|
Text.begin
|
13
14
|
|
14
15
|
if refs && refs.is_a?(Array)
|
@@ -58,6 +59,11 @@ module GitRunner
|
|
58
59
|
|
59
60
|
|
60
61
|
private
|
62
|
+
def load_git_runner_gems
|
63
|
+
# Load all additional gems that start with 'git-runner-'
|
64
|
+
Gem::Specification.all.map(&:name).select { |gem| gem =~ /^git-runner-/ }.each { |name| require(name) }
|
65
|
+
end
|
66
|
+
|
61
67
|
def write_error_log
|
62
68
|
log_directory = File.join(Configuration.tmp_directory, 'logs')
|
63
69
|
error_log = File.join(log_directory, Time.now.strftime("%Y%m%d%H%M%S") + '-error.log')
|
data/lib/git-runner/version.rb
CHANGED