class Ikaros::Config

Public Class Methods

new(path) click to toggle source
# File lib/ikaros/config.rb, line 4
def initialize(path)
  @path = path
  @config = YAML.load_file @path
  @dir_path = ::File.dirname ::File.realpath(@path)
  @dir_name = @dir_path.match(/\w+$/).to_s
end

Public Instance Methods

app_type() click to toggle source
# File lib/ikaros/config.rb, line 15
def app_type
  @config['language']
end
project_name() click to toggle source
# File lib/ikaros/config.rb, line 23
def project_name
  @dir_name
end
project_path() click to toggle source
# File lib/ikaros/config.rb, line 19
def project_path
  @dir_path
end
services() click to toggle source
# File lib/ikaros/config.rb, line 11
def services
  @config['services']
end