Sha256: c2006d9b36c23d4ef676d72d7359e949528f24e49c26ff17cbe6e753e4c67108

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 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 => nil, :stderr => nil, :exit_code => 1, :exit_signal => nil }
      else
        { :stdout => nil, :stderr => nil, :exit_code => 0, :exit_signal => nil }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
serverspec-0.0.19 spec/spec_helper.rb
serverspec-0.0.18 spec/spec_helper.rb