Sha256: cf8d60edc2b0d35f901dc9c1cd4f2654a6205bf43842b7d758fba75ca998e163

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

module VagrantPlugins
  module GuestMSYS2
    module Util
      module CapHelpers
        def self.wrap_powershell(script)
          wrapped = <<-EOH.gsub(/^ {12}/, '')
            cat << 'EOF' | powershell -InputFormat none -Command - 
            #{script}
            EOF
          EOH
          wrapped
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-guest-msys2-0.0.6 lib/vagrant-guest-msys2/util/cap_helpers.rb
vagrant-guest-msys2-0.0.5 lib/vagrant-guest-msys2/util/cap_helpers.rb
vagrant-guest-msys2-0.0.4 lib/vagrant-guest-msys2/util/cap_helpers.rb