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.46.0 lib/specinfra/command/windows/base.rb
specinfra-2.45.0 lib/specinfra/command/windows/base.rb
specinfra-2.44.8 lib/specinfra/command/windows/base.rb
specinfra-2.44.7 lib/specinfra/command/windows/base.rb
specinfra-2.44.6 lib/specinfra/command/windows/base.rb
specinfra-2.44.5 lib/specinfra/command/windows/base.rb
specinfra-2.44.4 lib/specinfra/command/windows/base.rb
specinfra-2.44.3 lib/specinfra/command/windows/base.rb
specinfra-2.44.2 lib/specinfra/command/windows/base.rb
specinfra-2.44.1 lib/specinfra/command/windows/base.rb
specinfra-2.44.0 lib/specinfra/command/windows/base.rb
specinfra-2.43.11 lib/specinfra/command/windows/base.rb
specinfra-cisco-2.40.2 lib/specinfra/command/windows/base.rb
specinfra-2.43.10 lib/specinfra/command/windows/base.rb
specinfra-2.43.9 lib/specinfra/command/windows/base.rb
specinfra-2.43.8 lib/specinfra/command/windows/base.rb
specinfra-2.43.7 lib/specinfra/command/windows/base.rb
specinfra-2.43.6 lib/specinfra/command/windows/base.rb
specinfra-2.43.5 lib/specinfra/command/windows/base.rb
specinfra-2.43.4 lib/specinfra/command/windows/base.rb