Class: GDK::Services::Minio
- Inherits:
-
Base
- Object
- Base
- GDK::Services::Minio
show all
- Defined in:
- lib/gdk/services/minio.rb
Overview
MinIO Object Storage service
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #procfile_entry, #ready_message
Instance Method Details
#command ⇒ Object
11
12
13
|
# File 'lib/gdk/services/minio.rb', line 11
def command
%(minio server -C minio/config --address "#{address}" --console-address "#{console_address}" --compat "#{data_dir}")
end
|
#data_dir ⇒ Object
27
28
29
|
# File 'lib/gdk/services/minio.rb', line 27
def data_dir
GDK.root.join('minio/data')
end
|
#enabled? ⇒ Boolean
15
16
17
|
# File 'lib/gdk/services/minio.rb', line 15
def enabled?
config.object_store?
end
|
#env ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/gdk/services/minio.rb', line 19
def env
{
MINIO_REGION: 'gdk',
MINIO_ACCESS_KEY: 'minio',
MINIO_SECRET_KEY: 'gdk-minio'
}
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/gdk/services/minio.rb', line 7
def name
'minio'
end
|