Class: Horatio::Detector::Docker
Instance Attribute Summary
Attributes included from IOHandler
#input, #output
Instance Method Summary
collapse
Methods included from JSONWriter
#increment, #increment_version
Methods included from JSONReader
#name, #version
Methods included from IOHandler
#detect, included, #initialize, #memo_read
Methods included from Validator
#validate, #validate_name, #validate_version
Instance Method Details
#default_commit ⇒ Object
24
25
26
|
# File 'lib/horatio/detector/docker.rb', line 24
def default_commit
true
end
|
16
17
18
|
# File 'lib/horatio/detector/docker.rb', line 16
def default_input
'horatio.json'
end
|
#default_output ⇒ Object
20
21
22
|
# File 'lib/horatio/detector/docker.rb', line 20
def default_output
'horatio.json'
end
|
#description ⇒ Object
34
35
36
|
# File 'lib/horatio/detector/docker.rb', line 34
def description
'horatio.json'
end
|
#info ⇒ Object
28
29
30
31
32
|
# File 'lib/horatio/detector/docker.rb', line 28
def info
memo_read do
JSON.parse(File.open(input, 'r').read)
end
end
|