Class: EacRubyUtils::Envs::BaseEnv
- Inherits:
-
Object
- Object
- EacRubyUtils::Envs::BaseEnv
- Defined in:
- lib/eac_ruby_utils/envs/base_env.rb
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
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 |