Sha256: f2a4c8a50ec0bd0988eeaa19b49042287167ac6d7333bb793d7c6119a507829a

Contents?: true

Size: 432 Bytes

Versions: 225

Compression:

Stored size: 432 Bytes

Contents

class Specinfra::Command::Windows::Base
  class << self
    def create
      self
    end

    private
    def create_command(command, using_ps1 = nil)
      Backend::PowerShell::Command.new do
        using using_ps1 if using_ps1
        exec command
      end
    end

    def windows_account account
      match = /((.+)\\)?(.+)/.match account
      domain = match[2]
      name = match[3]
      [name, domain]
    end
  end
end

Version data entries

225 entries across 225 versions & 3 rubygems

Version Path
specinfra-2.71.0 lib/specinfra/command/windows/base.rb
specinfra-2.70.2 lib/specinfra/command/windows/base.rb
specinfra-2.70.1 lib/specinfra/command/windows/base.rb
specinfra-2.70.0 lib/specinfra/command/windows/base.rb
specinfra-2.69.0 lib/specinfra/command/windows/base.rb
specinfra-2.68.2 lib/specinfra/command/windows/base.rb
specinfra-2.68.1 lib/specinfra/command/windows/base.rb
specinfra-2.68.0 lib/specinfra/command/windows/base.rb
specinfra-2.67.10 lib/specinfra/command/windows/base.rb
specinfra-2.67.9 lib/specinfra/command/windows/base.rb
specinfra-2.67.8 lib/specinfra/command/windows/base.rb
specinfra-2.67.7 lib/specinfra/command/windows/base.rb
specinfra-2.67.6 lib/specinfra/command/windows/base.rb
specinfra-2.67.5 lib/specinfra/command/windows/base.rb
specinfra-2.67.3 lib/specinfra/command/windows/base.rb
specinfra-2.67.2 lib/specinfra/command/windows/base.rb
specinfra-2.67.1 lib/specinfra/command/windows/base.rb
specinfra-2.67.0 lib/specinfra/command/windows/base.rb
specinfra-2.66.9 lib/specinfra/command/windows/base.rb
specinfra-2.66.8 lib/specinfra/command/windows/base.rb