class Envo::Host
Attributes
shell[R]
Public Class Methods
new(shell)
click to toggle source
# File lib/envo/host.rb, line 3 def initialize(shell) @shell = shell end
Public Instance Methods
env()
click to toggle source
# File lib/envo/host.rb, line 8 def env ENV end
home()
click to toggle source
# File lib/envo/host.rb, line 16 def home Dir.home end
path_exists?(path)
click to toggle source
# File lib/envo/host.rb, line 20 def path_exists?(path) File.exist?(path) end
path_id(path)
click to toggle source
# File lib/envo/host.rb, line 24 def path_id(path) return -1 if !File.exist?(path) File.stat(path).ino end
pwd()
click to toggle source
# File lib/envo/host.rb, line 12 def pwd Dir.pwd end