Sha256: 6c84a77063b7bed80bbb7bacc16064a0dcca4e736660bee5135fcbfcc443bfe1
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
require 'tempfile' module Vagrant module Provisioners class Winrm < Base class Config < Vagrant::Config::Base attr_accessor :inline def validate(env, errors) # Validate that the parameters are properly set if !inline errors.add("No inline set") end end end def self.config_class Config end def provision! env[:vm].channel.sudo(config.inline) do |type, data| if [:stderr, :stdout].include?(type) # Output the data with the proper color based on the stream. color = type == :stdout ? :green : :red # Note: Be sure to chomp the data to avoid the newlines that the # Chef outputs. env[:ui].info(data.chomp, :color => color, :prefix => false) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
realityforge-vagrant-windows-0.1.4 | lib/vagrant-windows/provisioners/winrm.rb |