Class: LintTrap::Container::Fake

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

Overview

Acts like a container, without actually requiring a container.

Constant Summary

Constants inherited from Base

Base::ImagePullError, Base::LOCAL_CONFIG_PATH

Instance Attribute Summary

Attributes inherited from Base

#image

Instance Method Summary collapse

Methods inherited from Base

#file_path

Constructor Details

#initializeFake

Returns a new instance of Fake.



7
8
9
# File 'lib/lint_trap/container/fake.rb', line 7

def initialize
  super('no/image', 'local')
end

Instance Method Details

#config_path(path) ⇒ Object



18
19
20
# File 'lib/lint_trap/container/fake.rb', line 18

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

#container_path(path) ⇒ Object



22
23
24
# File 'lib/lint_trap/container/fake.rb', line 22

def container_path(path)
  path
end

#local_path(path) ⇒ Object



26
27
28
# File 'lib/lint_trap/container/fake.rb', line 26

def local_path(path)
  path
end

#pullObject



11
12
# File 'lib/lint_trap/container/fake.rb', line 11

def pull
end

#wrap(command) ⇒ Object



14
15
16
# File 'lib/lint_trap/container/fake.rb', line 14

def wrap(command)
  command
end