Sha256: 19dd80284be9c37b87ba83d919d976c76bc6c386902fce959fcf93f5d40434a3

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 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

7 entries across 7 versions & 1 rubygems

Version Path
specinfra-1.0.1 lib/specinfra/helper/os.rb
specinfra-1.0.0 lib/specinfra/helper/os.rb
specinfra-0.8.0 lib/specinfra/helper/os.rb
specinfra-0.7.3 lib/specinfra/helper/os.rb
specinfra-0.7.2 lib/specinfra/helper/os.rb
specinfra-0.7.1 lib/specinfra/helper/os.rb
specinfra-0.7.0 lib/specinfra/helper/os.rb