class Disloku::OsCommands

Public Class Methods

convertPath(path) click to toggle source
# File lib/disloku/OsCommands.rb, line 22
def convertPath(path)
        return @@os == :win ? path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) : path
end
get(cmdKey, *args) click to toggle source
# File lib/disloku/OsCommands.rb, line 18
def get(cmdKey, *args)
        return SysCmd.new(@@commands[cmdKey][@@os], *args)
end