Sha256: efab67184c87691d9196a597303479a250c13785325925b657ac099f1b7a2efb

Contents?: true

Size: 1.13 KB

Versions: 124

Compression:

Stored size: 1.13 KB

Contents

[ 'host', 'command_factory', 'command', 'options', 'dsl/wrappers' ].each do |lib|
  require "beaker/#{lib}"
end

module PSWindows
  class Host < Windows::Host
    [ 'user', 'group', 'exec', 'pkg', 'file' ].each do |lib|
      require "beaker/host/pswindows/#{lib}"
    end

    include PSWindows::User
    include PSWindows::Group
    include PSWindows::File
    include PSWindows::Exec
    include PSWindows::Pkg

    def external_copy_base
      return @external_copy_base if @external_copy_base
      @external_copy_base = execute('for %I in (%ALLUSERSPROFILE%) do @echo %~I')
      @external_copy_base
    end

    # attr_reader :network_separator, :external_copy_base, :system_temp_path
    attr_reader :scp_separator, :system_temp_path
    def initialize name, host_hash, options
      super

      @scp_separator = '/'
      # %TEMP% == C:\Users\ADMINI~1\AppData\Local\Temp
      # is a user temp path, not the system path.  Also, it doesn't work, there's
      # probably an issue with the `ADMINI~1` section
      @system_temp_path = 'C:\\Windows\\Temp'
      @external_copy_base = nil
      # @external_copy_base = '/programdata'
    end

  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
beaker-3.37.0 lib/beaker/host/pswindows.rb
beaker-3.36.0 lib/beaker/host/pswindows.rb
beaker-3.35.0 lib/beaker/host/pswindows.rb
beaker-3.34.0 lib/beaker/host/pswindows.rb
beaker-3.33.0 lib/beaker/host/pswindows.rb
beaker-3.32.0 lib/beaker/host/pswindows.rb
beaker-3.31.0 lib/beaker/host/pswindows.rb
beaker-3.30.0 lib/beaker/host/pswindows.rb
beaker-3.29.0 lib/beaker/host/pswindows.rb
beaker-3.28.0 lib/beaker/host/pswindows.rb
beaker-3.27.0 lib/beaker/host/pswindows.rb
beaker-3.26.0 lib/beaker/host/pswindows.rb
beaker-3.25.0 lib/beaker/host/pswindows.rb
beaker-3.24.0 lib/beaker/host/pswindows.rb
beaker-3.23.0 lib/beaker/host/pswindows.rb
beaker-3.22.0 lib/beaker/host/pswindows.rb
beaker-3.21.1 lib/beaker/host/pswindows.rb
beaker-3.21.0 lib/beaker/host/pswindows.rb
beaker-3.20.0 lib/beaker/host/pswindows.rb
beaker-3.19.0 lib/beaker/host/pswindows.rb