Sha256: f7c0aec19bdfd043c22a723bb72c446eaa93c9ec480a4c80279fac6d9882d432

Contents?: true

Size: 473 Bytes

Versions: 9

Compression:

Stored size: 473 Bytes

Contents

require_relative 'base'

module LintTrap
  module Container
    # Acts like a container, without actually requiring a container.
    class Fake < Base
      def initialize
        super('no/image', 'local')
      end

      def wrap(command)
        command
      end

      def config_path(path)
        LOCAL_CONFIG_PATH.join(path).to_s
      end

      def container_path(path)
        path
      end

      def local_path(path)
        path
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lint_trap-0.0.11 lib/lint_trap/container/fake.rb
lint_trap-0.0.10 lib/lint_trap/container/fake.rb
lint_trap-0.0.9 lib/lint_trap/container/fake.rb
lint_trap-0.0.8 lib/lint_trap/container/fake.rb
lint_trap-0.0.7 lib/lint_trap/container/fake.rb
lint_trap-0.0.6 lib/lint_trap/container/fake.rb
lint_trap-0.0.5 lib/lint_trap/container/fake.rb
lint_trap-0.0.4 lib/lint_trap/container/fake.rb
lint_trap-0.0.3 lib/lint_trap/container/fake.rb