Class: Bricky::Bricks::Helper

Inherits:
Base
  • Object
show all
Defined in:
lib/bricky/bricks/helper.rb

Direct Known Subclasses

Ruby

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#bootstrap, #entrypoint, #initialize

Constructor Details

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

Instance Method Details

#argumentsObject



4
5
6
7
8
# File 'lib/bricky/bricks/helper.rb', line 4

def arguments
  ["-v #{bricks_path}/helper:/bricks/helper"].tap do |args|
    args.push("-v #{ssh_auth_socket}:/tmp/ssh-auth.socket") unless ssh_auth_socket.nil?
  end
end

#environmentsObject



10
11
12
13
14
# File 'lib/bricky/bricks/helper.rb', line 10

def environments
  ["-e BRICKS_LINUX=#{linux}", '-e BRICKS_HOME=/bricks/helper'].tap do |envs|
    envs.push('-e SSH_AUTH_SOCK=/tmp/ssh-auth.socket') unless ssh_auth_socket.nil?
  end
end