Sha256: 4ee62e4d2555990ead6adab7e35e86a1d2bcfa1183231d40a578d57bb1a9ab07
Contents?: true
Size: 533 Bytes
Versions: 6
Compression:
Stored size: 533 Bytes
Contents
require 'serverspec' require 'pathname' require 'rspec/mocks/standalone' include Specinfra::Helper::Exec PROJECT_ROOT = (Pathname.new(File.dirname(__FILE__)) + '..').expand_path module Specinfra module Backend class Exec < Base def run_command cmd CommandResult.new({ :stdout => ::Specinfra.configuration.stdout, :stderr => ::Specinfra.configuration.stderr, :exit_status => cmd =~ /invalid/ ? 1 : 0, :exit_signal => nil, }) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems