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



4
5
6
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 4

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

#file_exist?(file) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/eac_ruby_utils/envs/base_env.rb', line 8

def file_exist?(file)
  command(['stat', file]).execute[:exit_code].zero?
end