winrm-cli 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env ruby
1
2
  require 'rubygems'
2
3
  require 'commander/import'
3
4
  require 'em-winrm'
@@ -56,7 +57,7 @@ command :exec do |c|
56
57
 
57
58
  # create a session
58
59
  session = EventMachine::WinRM::Session.new(:log_level => :info)
59
- opts = {:user => options.username, :password => options.password, :basic_auth_only => basic_auth?(options.username)}
60
+ opts = {:user => options.username, :password => options.password, :basic_auth_only => basic_auth?(options.username), :operation_timeout => 1800, :disable_sspi => true }
60
61
  session.use(options.computer,opts)
61
62
  output_callbacks(session)
62
63
  # run a command
@@ -77,7 +78,7 @@ command :script do |c|
77
78
  script = ARGV.join(" ").split(' -- ',2)[1]
78
79
  # create a session
79
80
  session = EventMachine::WinRM::Session.new(:log_level => :info)
80
- opts = {:user => options.username, :password => options.password, :basic_auth_only => basic_auth?(options.username)}
81
+ opts = {:user => options.username, :password => options.password, :basic_auth_only => basic_auth?(options.username), :operation_timeout => 1800, :disable_sspi => true}
81
82
  session.use(options.computer,opts)
82
83
  output_callbacks(session)
83
84
  # run a command
@@ -1,5 +1,5 @@
1
1
  module Winrm
2
2
  module Cli
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/winrm-cli.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
- gem.executables = ['winrm-cli.rb']
19
+ gem.executables = ['winrm-cli']
20
20
 
21
21
  gem.add_runtime_dependency 'em-winrm', "~> 0.5.4"
22
22
  gem.add_runtime_dependency 'commander'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -47,7 +47,7 @@ description: A WinRM Command Line Application
47
47
  email:
48
48
  - pmorton@biaprotect.com
49
49
  executables:
50
- - winrm-cli.rb
50
+ - winrm-cli
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
@@ -56,7 +56,7 @@ files:
56
56
  - LICENSE.txt
57
57
  - README.md
58
58
  - Rakefile
59
- - bin/winrm-cli.rb
59
+ - bin/winrm-cli
60
60
  - lib/winrm-cli.rb
61
61
  - lib/winrm-cli/version.rb
62
62
  - winrm-cli.gemspec