Class: EacRubyUtils::Envs::BaseEnv

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_utils/envs/base_env.rb

Direct Known Subclasses

LocalEnv, SshEnv

Instance Method Summary collapse

Instance Method Details

#command(*args) ⇒ Object



10
11
12
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 10

def command(*args)
  ::EacRubyUtils::Envs::Command.new(self, args)
end

#executable(*executable_new_args) ⇒ Object



19
20
21
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 19

def executable(*executable_new_args)
  ::EacRubyUtils::Envs::Executable.new(self, *executable_new_args)
end

#file(path) ⇒ Object



23
24
25
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 23

def file(path)
  ::EacRubyUtils::Envs::File.new(self, path)
end

#file_exist?(file) ⇒ Boolean

DEPRECATED: Please use file(file).exist? instead.

Returns:



15
16
17
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 15

def file_exist?(file)
  self.file(file).exist?
end