Class: LambdaRubyBundler::Volume Private

Inherits:
Object
  • Object
show all
Defined in:
lib/lambda_ruby_bundler/volume.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Wrapper around [Docker::Volume] for creating and fetching bundler volumes, which are used to cache built gems. This speeds up the process significantly.

Constant Summary collapse

NAME_TEMPLATE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'lambda-ruby-bundler-%<app>s-volume'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name) ⇒ Volume

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Volume.



13
14
15
# File 'lib/lambda_ruby_bundler/volume.rb', line 13

def initialize(application_name)
  @application_name = application_name
end

Instance Attribute Details

#application_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/lambda_ruby_bundler/volume.rb', line 11

def application_name
  @application_name
end

Instance Method Details

#idObject Also known as: name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/lambda_ruby_bundler/volume.rb', line 17

def id
  volume.id
end