Class: Bricky::Bricks::Mounts

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Bricky::Bricks::Base

Instance Method Details

#argumentsObject



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

#entrypointObject



11
12
13
# File 'lib/bricky/bricks/mounts.rb', line 11

def entrypoint
  "/bricks/mounts/builder"
end

#environmentsObject



15
16
17
# File 'lib/bricky/bricks/mounts.rb', line 15

def environments
  ["-e BRICKS_MOUNTS_IGNORE='#{config.fetch('ignore', []).join(',')}'"]
end