Module: Platform

Extended by:
Platform
Included in:
Platform
Defined in:
lib/rautomation/platform.rb

Instance Method Summary collapse

Instance Method Details

#architecture



4
5
6
7
8
9
10
# File 'lib/rautomation/platform.rb', line 4

def architecture
   if is_x86?
      'x86'
   else
      'x64'
   end
end

#is_x86?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/rautomation/platform.rb', line 12

def is_x86?
   %w[x86 i386].any? { |p| RUBY_PLATFORM =~ /#{p}/i }
end