fluent-migrator-command-runner 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,14 +2,14 @@ module FluentMigratorCommandRunner
2
2
  class Runner
3
3
 
4
4
  def self.execute(command)
5
- fluent_migrator_result = Kernel.system(command)
6
- raise 'Fluent Migrator Failed' if fluent_migrator_run_failed?(fluent_migrator_result)
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.fluent_migrator_run_failed?(fluent_migrator_result)
12
- fluent_migrator_result == false
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
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-09-25 00:00:00.000000000 Z
12
+ date: 2014-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fig_newton