transferred Code Ocean from original repository to GitHub
This commit is contained in:
14
lib/code_ocean/config.rb
Normal file
14
lib/code_ocean/config.rb
Normal file
@ -0,0 +1,14 @@
|
||||
module CodeOcean
|
||||
class Config
|
||||
def initialize(filename)
|
||||
@filename = filename
|
||||
end
|
||||
|
||||
def read
|
||||
path = Rails.root.join('config', "#{@filename}.yml")
|
||||
if File.exists?(path)
|
||||
YAML.load_file(path)[Rails.env].symbolize_keys
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user