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.56.0 lib/specinfra/command/windows/base.rb
specinfra-2.55.0 lib/specinfra/command/windows/base.rb
specinfra-2.54.2 lib/specinfra/command/windows/base.rb
specinfra-2.54.1 lib/specinfra/command/windows/base.rb
specinfra-2.54.0 lib/specinfra/command/windows/base.rb
specinfra-2.53.1 lib/specinfra/command/windows/base.rb
specinfra-2.53.0 lib/specinfra/command/windows/base.rb
specinfra-2.52.0 lib/specinfra/command/windows/base.rb
specinfra-2.51.2 lib/specinfra/command/windows/base.rb
specinfra-2.51.1 lib/specinfra/command/windows/base.rb
specinfra-2.51.0 lib/specinfra/command/windows/base.rb
specinfra-2.50.4 lib/specinfra/command/windows/base.rb
specinfra-2.50.3 lib/specinfra/command/windows/base.rb
specinfra-2.50.2 lib/specinfra/command/windows/base.rb
specinfra-2.50.1 lib/specinfra/command/windows/base.rb
specinfra-2.50.0 lib/specinfra/command/windows/base.rb
specinfra-2.49.0 lib/specinfra/command/windows/base.rb
specinfra-2.48.0 lib/specinfra/command/windows/base.rb
specinfra-2.47.1 lib/specinfra/command/windows/base.rb
specinfra-2.47.0 lib/specinfra/command/windows/base.rb