-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.rb
34 lines (31 loc) · 953 Bytes
/
plugin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# name: discourse-machine-learning
# about: Allows the user to create dockerized machine learning models for use in Discourse
# version: 0.2.0
# authors: Angus McLeod
register_asset 'stylesheets/ml.scss', :desktop
gem 'docker-api', '1.34.2'
after_initialize do
%w[
../lib/engine.rb
../lib/container.rb
../lib/dataset.rb
../lib/docker.rb
../lib/model.rb
../lib/run.rb
../app/controllers/dataset_controller.rb
../app/controllers/image_controller.rb
../app/controllers/model_controller.rb
../app/controllers/run_controller.rb
../app/serializers/data_serializer.rb
../app/serializers/dataset_serializer.rb
../app/serializers/image_serializer.rb
../app/serializers/model_serializer.rb
../app/serializers/run_serializer.rb
../config/routes.rb
../jobs/build_image.rb
../jobs/test_run.rb
../jobs/train_run.rb
].each do |path|
load File.expand_path(path, __FILE__)
end
end