Sha256: 8759aa5d4591ef9ca429a425ead709c1173b6e092c86118da0f397e04b3ec0da
Contents?: true
Size: 569 Bytes
Versions: 7
Compression:
Stored size: 569 Bytes
Contents
require 'serverspec' require 'pathname' PROJECT_ROOT = (Pathname.new(File.dirname(__FILE__)) + '..').expand_path Dir[PROJECT_ROOT.join("spec/support/**/*.rb")].each { |file| require(file) } module Serverspec module SshHelper def ssh_exec(cmd) if cmd =~ /invalid/ { :stdout => '', :stderr => '', :exit_code => 1, :exit_signal => nil } else { :stdout => ::RSpec.configuration.stdout, :stderr => '', :exit_code => 0, :exit_signal => nil } end end end end RSpec.configure do |c| c.add_setting :stdout, :default => '' end
Version data entries
7 entries across 7 versions & 1 rubygems