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

Version Path
avm-tools-0.61.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.60.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.59.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.43.0 lib/eac_ruby_utils/envs/file.rb
avm-tools-0.58.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.42.0 lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.41.0 lib/eac_ruby_utils/envs/file.rb
avm-tools-0.58.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.57.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
ehbrs-tools-0.13.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.40.0 lib/eac_ruby_utils/envs/file.rb
avm-tools-0.56.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.39.0 lib/eac_ruby_utils/envs/file.rb
avm-tools-0.55.0 vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.54.2 vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.54.1 vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.38.0 lib/eac_ruby_utils/envs/file.rb
avm-tools-0.54.0 vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
avm-tools-0.53.0 vendor/gems/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
eac_ruby_utils-0.37.0 lib/eac_ruby_utils/envs/file.rb