Class: Bricky::Bricks::Mounts
- Inherits:
-
Base
- Object
- Base
- Bricky::Bricks::Mounts
show all
- Defined in:
- lib/bricky/bricks/mounts.rb
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#bootstrap, #initialize
Instance Method Details
#arguments ⇒ Object
4
5
6
7
8
9
|
# File 'lib/bricky/bricks/mounts.rb', line 4
def arguments
result = config.inject([commands_volume]) do |acc, mount|
acc << mount_point(mount.last, mount.first) if not mount.first.eql? "ignore"
acc
end
end
|
#entrypoint ⇒ Object
11
12
13
|
# File 'lib/bricky/bricks/mounts.rb', line 11
def entrypoint
"/bricks/mounts/builder"
end
|
#environments ⇒ Object
15
16
17
|
# File 'lib/bricky/bricks/mounts.rb', line 15
def environments
["-e BRICKS_MOUNTS_IGNORE='#{config.fetch('ignore', []).join(',')}'"]
end
|