Class: LintTrap::Container::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_trap/container/base.rb

Direct Known Subclasses

Docker, Fake

Constant Summary collapse

LOCAL_CONFIG_PATH =
Pathname.new(File.expand_path('../../../../config', __FILE__))

Instance Method Summary collapse

Constructor Details

#initialize(image, repo_path) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/lint_trap/container/base.rb', line 8

def initialize(image, repo_path)
  @image = image
  @repo_path = Pathname.new(repo_path)
end

Instance Method Details

#config_path(_path) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/lint_trap/container/base.rb', line 17

def config_path(_path)
  raise NotImplementedError
end

#file_path(_path) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/lint_trap/container/base.rb', line 21

def file_path(_path)
  raise NotImplementedError
end

#wrap(_command) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/lint_trap/container/base.rb', line 13

def wrap(_command)
  raise NotImplementedError
end