Module: Tacape::Tools::Helpers::OsSupport::InstanceMethods
- Defined in:
- lib/tacape/tools/helpers/os_support.rb
Instance Method Summary collapse
Instance Method Details
#check_os_support ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/tacape/tools/helpers/os_support.rb', line 6 def check_os_support raise(OSLayerNotImplemented,'tool should have @os_support=[Tacepe::Os::SomeOs,...]') if @os_support==nil @current_os=Tacape::Belt.current_os if @current_os==nil unless @os_support.include? @current_os raise UnsupportedOS, "This Tacape Tool does not support your OS." end end |