Sha256: cbe2565697bd85f5e5276d71a7f838a1b6511c818826f19ffbd52fe470ad8dd9

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

module SpecInfra
  module Helper
    [
      'Base',
      'AIX',
      '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

4 entries across 4 versions & 1 rubygems

Version Path
specinfra-1.0.5 lib/specinfra/helper/os.rb
specinfra-1.0.4 lib/specinfra/helper/os.rb
specinfra-1.0.3 lib/specinfra/helper/os.rb
specinfra-1.0.2 lib/specinfra/helper/os.rb