Class: Bricky::Bricks::Bundle

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



7
8
9
10
11
12
# File 'lib/bricky/bricks/bundle.rb', line 7

def arguments
  scripts_path = "#{bricks_path}/bundle"
  results = ["-v #{scripts_path}:/bricks/bundle"]
  results.push(cached) if config['cache']
  results
end

#entrypointObject



14
15
16
# File 'lib/bricky/bricks/bundle.rb', line 14

def entrypoint
  '/bricks/bundle/builder'
end

#environmentsObject



18
19
20
21
# File 'lib/bricky/bricks/bundle.rb', line 18

def environments
  ["-e BRICKS_BUNDLE_WITHOUT=#{config.fetch('without', 'development:test')}",
   "-e BRICKS_BUNDLE_INSTALL=#{config.fetch('install', true)}"]
end