spec/spec_helper.rb in serverspec-2.0.0.beta8 vs spec/spec_helper.rb in serverspec-2.0.0.beta9
- old
+ new
@@ -16,7 +16,18 @@
:exit_status => cmd =~ /invalid/ ? 1 : 0,
:exit_signal => nil,
})
end
end
+ class Cmd < Base
+ def run_command cmd
+ CommandResult.new({
+ :stdout => ::Specinfra.configuration.stdout,
+ :stderr => ::Specinfra.configuration.stderr,
+ :exit_status => cmd.to_s =~ /invalid/ ? 1 : 0,
+ :exit_signal => nil,
+ })
+ end
+ end
end
end
+