From 3a6cca39c5406aa72dcdcb403a209b684f0d4a4b Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 28 Mar 2017 08:52:10 -0400 Subject: [PATCH] =?UTF-8?q?Fixed=20things=20that=20the=20stylizer=20?= =?UTF-8?q?=E2=80=9Cautocorrected=E2=80=9D=20to=20wrong.=20;)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/example_3/rakefile_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/example_3/rakefile_helper.rb b/examples/example_3/rakefile_helper.rb index 8f43708..d51cef7 100644 --- a/examples/example_3/rakefile_helper.rb +++ b/examples/example_3/rakefile_helper.rb @@ -9,7 +9,7 @@ module RakefileHelpers def load_configuration(config_file) $cfg_file = config_file - $cfg = YAML.safe_load(File.read($cfg_file)) + $cfg = YAML.load(File.read($cfg_file)) end def configure_clean @@ -139,8 +139,8 @@ module RakefileHelpers report command_string output = `#{command_string}`.chomp report(output) if verbose && !output.nil? && !output.empty? - if ($CHILD_STATUS.exitstatus != 0) && raise_on_fail - raise "Command failed. (Returned #{$CHILD_STATUS.exitstatus})" + if ($?.exitstatus != 0) && raise_on_fail + raise "Command failed. (Returned #{$?.exitstatus})" end output end -- GitLab