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.91.0 lib/specinfra/command/windows/base.rb
specinfra-2.90.1 lib/specinfra/command/windows/base.rb
specinfra-2.90.0 lib/specinfra/command/windows/base.rb
specinfra-2.89.0 lib/specinfra/command/windows/base.rb
specinfra-2.88.2 lib/specinfra/command/windows/base.rb
specinfra-2.88.1 lib/specinfra/command/windows/base.rb
specinfra-2.88.0 lib/specinfra/command/windows/base.rb
specinfra-2.87.2 lib/specinfra/command/windows/base.rb
specinfra-2.87.1 lib/specinfra/command/windows/base.rb
specinfra-2.87.0 lib/specinfra/command/windows/base.rb
specinfra-2.86.0 lib/specinfra/command/windows/base.rb
specinfra-2.85.1 lib/specinfra/command/windows/base.rb
specinfra-2.85.0 lib/specinfra/command/windows/base.rb
specinfra-2.84.1 lib/specinfra/command/windows/base.rb
specinfra-2.84.0 lib/specinfra/command/windows/base.rb
specinfra-2.83.4 lib/specinfra/command/windows/base.rb
specinfra-2.83.3 lib/specinfra/command/windows/base.rb
specinfra-2.83.2 lib/specinfra/command/windows/base.rb
specinfra-2.83.1 lib/specinfra/command/windows/base.rb
specinfra-2.83.0 lib/specinfra/command/windows/base.rb