module Velcro::System::ClassMethods
Class methods for Velcro
Public Instance Methods
home()
click to toggle source
# File lib/velcro/system.rb, line 18 def home ENV['HOME'] end
hostname()
click to toggle source
# File lib/velcro/system.rb, line 30 def hostname `hostname`.rstrip end
linux?()
click to toggle source
# File lib/velcro/system.rb, line 14 def linux? uname == 'Linux' end
ls(dir)
click to toggle source
# File lib/velcro/system.rb, line 22 def ls(dir) `ls -al #{dir}`.split("\n") end
osx?()
click to toggle source
# File lib/velcro/system.rb, line 10 def osx? uname == 'Darwin' end
uname()
click to toggle source
# File lib/velcro/system.rb, line 26 def uname `uname`.rstrip end