fluent-migrator-command-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.
|
@@ -2,14 +2,14 @@ module FluentMigratorCommandRunner
|
|
|
2
2
|
class Runner
|
|
3
3
|
|
|
4
4
|
def self.execute(command)
|
|
5
|
-
|
|
6
|
-
raise 'Fluent Migrator Failed'
|
|
5
|
+
Kernel.system(command)
|
|
6
|
+
raise 'Fluent Migrator Failed' unless fluent_migrator_run_succeeded?
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
private
|
|
10
10
|
|
|
11
|
-
def self.
|
|
12
|
-
|
|
11
|
+
def self.fluent_migrator_run_succeeded?
|
|
12
|
+
$?.exitstatus == 0
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-migrator-command-runner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fig_newton
|