class Specinfra::Command::Windows::Base
Public Class Methods
create()
click to toggle source
# File lib/specinfra/command/windows/base.rb, line 3 def create self end
Private Class Methods
create_command(command, using_ps1 = nil)
click to toggle source
# File lib/specinfra/command/windows/base.rb, line 8 def create_command(command, using_ps1 = nil) Backend::PowerShell::Command.new do using using_ps1 if using_ps1 exec command end end
windows_account(account)
click to toggle source
# File lib/specinfra/command/windows/base.rb, line 15 def windows_account account match = /((.+)\\)?(.+)/.match account domain = match[2] name = match[3] [name, domain] end