Class: Horatio::Detector::Docker

Inherits:
Object
  • Object
show all
Includes:
IOHandler, JSONReader, JSONWriter, Validator
Defined in:
lib/horatio/detector/docker.rb

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_commitObject



24
25
26
# File 'lib/horatio/detector/docker.rb', line 24

def default_commit
  true
end

#default_inputObject



16
17
18
# File 'lib/horatio/detector/docker.rb', line 16

def default_input
  'horatio.json'
end

#default_outputObject



20
21
22
# File 'lib/horatio/detector/docker.rb', line 20

def default_output
  'horatio.json'
end

#descriptionObject



34
35
36
# File 'lib/horatio/detector/docker.rb', line 34

def description
  'horatio.json'
end

#infoObject



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