class Apperol::AppJson

Public Class Methods

new(file_path = 'app.json') click to toggle source
# File lib/apperol/app_json.rb, line 3
def initialize(file_path = 'app.json')
  @file_path = file_path
end

Public Instance Methods

__json__() click to toggle source
# File lib/apperol/app_json.rb, line 13
def __json__
  @__json__ ||= JSON.parse(File.read(@file_path))
end
env() click to toggle source
# File lib/apperol/app_json.rb, line 7
def env
  __json__["env"].map do |key, definition|
    AppJson::Env.new(key, definition)
  end
end