Merge pull request #13 from chef/specinfra-winrm

bugfix: require specinfra backend
This commit is contained in:
Dominik Richter 2015-09-14 15:18:18 +02:00
commit fdc67bb02c
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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