Sha256: 958bdd6cd854ee69289b37a4cb27e085d448d2f0661581b20922705a2c4cb11b
Contents?: true
Size: 367 Bytes
Versions: 400
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true module EacRubyUtils module Envs class File attr_reader :env, :path def initialize(env, path) @env = env @path = path end def exist? env.command('stat', path).execute[:exit_code].zero? end def read env.command('cat', path).execute! end end end end
Version data entries
400 entries across 400 versions & 4 rubygems