mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
Merge pull request #13 from chef/specinfra-winrm
bugfix: require specinfra backend
This commit is contained in:
commit
fdc67bb02c
2 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
# license: All rights reserved
|
||||
|
||||
class Command < Vulcano.resource(1)
|
||||
class Cmd < Vulcano.resource(1)
|
||||
name 'command'
|
||||
def initialize(cmd)
|
||||
@command = cmd
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'shellwords'
|
||||
require 'specinfra'
|
||||
require 'specinfra/helper'
|
||||
require 'specinfra/helper/set'
|
||||
require 'winrm'
|
||||
|
||||
module Vulcano::Backends
|
||||
|
@ -55,7 +58,6 @@ module Vulcano::Backends
|
|||
def configure_shared_options
|
||||
Specinfra::Backend::Cmd.send(:include, Specinfra::Helper::Set)
|
||||
si = Specinfra.configuration
|
||||
si.os = nil
|
||||
if @conf['disable_sudo']
|
||||
si.disable_sudo = true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue