Class: SousChef::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/sous-chef/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file) ⇒ Parser

Returns a new instance of Parser.



4
5
6
# File 'lib/sous-chef/parser.rb', line 4

def initialize(config_file)
  @config_file = config_file
end

Instance Attribute Details

#config_fileObject (readonly)

Returns the value of attribute config_file.



2
3
4
# File 'lib/sous-chef/parser.rb', line 2

def config_file
  @config_file
end

Instance Method Details

#parseObject



8
9
10
# File 'lib/sous-chef/parser.rb', line 8

def parse
  parse_yaml(@config_file)
end