git-runner 0.0.4 → 0.0.5
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.
- 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