module Tacape::Tools::Helpers::OsSupport::InstanceMethods
Public Instance Methods
check_os_support()
click to toggle source
# 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