Sha256: ad3df6e9c012bb75c5ae55a93bbed5a59442cf6a40a44675cdc7c665b7460569

Contents?: true

Size: 797 Bytes

Versions: 14

Compression:

Stored size: 797 Bytes

Contents

module Veewee
  module Provider
    module Virtualbox
      module BoxCommand

        def winrm_options
          port=definition.winrm_host_port
          if self.exists?
            forward=self.forwarding("guestwinrm")
            unless forward.nil?
              port=forward[:host_port]
            end
          end

          winrm_options={
            :user => definition.winrm_user,
            :pass => definition.winrm_password,
            :port => port,
#            :port => (port.to_i+1).to_s, # debug, by running charles with a reverse proxy
            :basic_auth_only => true,
            :timeout => definition.winrm_login_timeout.to_i,
            :operation_timeout => 600 # ten minutes
          }
          return winrm_options

        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
veewee-0.4.2 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.4.1 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.4.0 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.12 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.11 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.10 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.9 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-atlassian-0.3.11 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.7 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.6 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.5 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.4 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.3 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb
veewee-0.3.2 lib/veewee/provider/virtualbox/box/helper/winrm_options.rb