1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
require 'serverspec'
set :backend, :exec
module Specinfra
module Backend
class Exec < Base
def run_command cmd
CommandResult.new({
:stdout => ::Specinfra.configuration.stdout,
:stderr => ::Specinfra.configuration.stderr,
:exit_status => ::Specinfra.configuration.exit_status,
:exit_signal => nil,
})
end
end
class Cmd < Base
def run_command cmd
CommandResult.new({
:stdout => ::Specinfra.configuration.stdout,
:stderr => ::Specinfra.configuration.stderr,
:exit_status => ::Specinfra.configuration.exit_status,
:exit_signal => nil,
})
end
end
end
end
|