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.66.7 lib/specinfra/command/windows/base.rb
specinfra-2.66.6 lib/specinfra/command/windows/base.rb
specinfra-2.66.5 lib/specinfra/command/windows/base.rb
specinfra-2.66.4 lib/specinfra/command/windows/base.rb
specinfra-2.66.3 lib/specinfra/command/windows/base.rb
specinfra-2.66.2 lib/specinfra/command/windows/base.rb
specinfra-2.66.1 lib/specinfra/command/windows/base.rb
specinfra-2.66.0 lib/specinfra/command/windows/base.rb
specinfra-2.65.0 lib/specinfra/command/windows/base.rb
specinfra-2.64.0 lib/specinfra/command/windows/base.rb
specinfra-2.63.3 lib/specinfra/command/windows/base.rb
specinfra-2.63.2 lib/specinfra/command/windows/base.rb
specinfra-2.63.1 lib/specinfra/command/windows/base.rb
specinfra-2.63.0 lib/specinfra/command/windows/base.rb
specinfra-2.62.0 lib/specinfra/command/windows/base.rb
specinfra-2.61.3 lib/specinfra/command/windows/base.rb
specinfra-2.61.2 lib/specinfra/command/windows/base.rb
specinfra-2.61.1 lib/specinfra/command/windows/base.rb
specinfra-2.61.0 lib/specinfra/command/windows/base.rb
specinfra-2.60.4 lib/specinfra/command/windows/base.rb