Sha256: 176819c2f4141c48de8fcdbce67d2d353b6e159cf4087321d50949de6e3ec614

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

module SpecInfra
  module Helper
    [
      'Base',
      'AIX',
      'Arch',
      'Darwin',
      'Debian',
      'FreeBSD',
      'FreeBSD10',
      'Gentoo',
      'Plamo',
      'RedHat',
      'SuSE',
      'SmartOS',
      'Solaris',
      'Solaris10',
      'Solaris11',
      'Ubuntu',
      'Windows',
    ].each do |os|
      eval <<-EOF
        module #{os}
          def commands
            SpecInfra::Command::#{os}.new
          end
        end
      EOF
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
specinfra-1.3.0 lib/specinfra/helper/os.rb
specinfra-1.2.1 lib/specinfra/helper/os.rb
specinfra-1.2.0 lib/specinfra/helper/os.rb
specinfra-1.1.1 lib/specinfra/helper/os.rb
specinfra-1.1.0 lib/specinfra/helper/os.rb