Class: Bricky::Bricks::Dotenv

Inherits:
Base
  • Object
show all
Defined in:
lib/bricky/bricks/dotenv.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



8
9
10
# File 'lib/bricky/bricks/dotenv.rb', line 8

def arguments
  ["-v #{bricks_path}/dotenv:/bricks/dotenv"]
end

#entrypointObject



4
5
6
# File 'lib/bricky/bricks/dotenv.rb', line 4

def entrypoint
  "/bricks/dotenv/builder"
end

#environmentsObject



12
13
14
# File 'lib/bricky/bricks/dotenv.rb', line 12

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