Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving CommandExecutor to WinRM core #22

Closed
mwrock opened this issue Nov 6, 2015 · 4 comments
Closed

Moving CommandExecutor to WinRM core #22

mwrock opened this issue Nov 6, 2015 · 4 comments

Comments

@mwrock
Copy link
Member

mwrock commented Nov 6, 2015

I'm getting started with test-kitchen/winrm-transport#16 pulling in aspects of the winrm-transport's implementation into this gem. winrm-transport was created about the same time this gem was to support windows support in Test-Kitchen. Test-Kitchen uses winrm-transport for both file transfers and it also uses that gems CommandExecutor for ad hoc commands.

Both the CommandExecutor in this gem and winrm-transport have the exact same public interface except its run_powershell is run_powershell_script which can be easily remedied with an alias. Its implementation has a couple added features which will be nice here:

  • Managing the lower command quotas of legacy windows versions
  • Finalizer to close open connections (needed in ad hoc scenarios)

Even without these added features, the CommandExecutor provides value to many scenarios by virtue of the fact that it makes it easy to call several commands on a single winrm connection instead of opening a new connection for each command.

I'd like to move the CommandExecutor to the core gem so that consuming apps like Test-Kitchen can use it for ad hoc commands. They could do that through this gem but its odd to do so via a gem focused on file transfer capabilities. I think we can do this in a way that is non breaking and I don't think it risks duplicate code.

I'm volunteering to do the code flinging but am opening this issue as a place for discussion.

@sneal
Copy link
Member

sneal commented Nov 6, 2015

Make it so 👍

@sneal
Copy link
Member

sneal commented Nov 6, 2015

Also see @maxlinc interface proposal for WinRM 2.0 WinRb/WinRM#115

@hh
Copy link

hh commented Dec 2, 2015

Would love to help if any is needed. @mwrock

@mwrock
Copy link
Member Author

mwrock commented Jan 21, 2016

closed via #28

@mwrock mwrock closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants