Class: Bootscale::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/bootscale/entry.rb

Constant Summary collapse

DL_EXTENSIONS =
[
  RbConfig::CONFIG['DLEXT'],
  RbConfig::CONFIG['DLEXT2'],
].reject(&:empty?).map { |ext| ".#{ext}"}
FEATURE_FILES =
"**/*{#{DOT_RB},#{DL_EXTENSIONS.join(',')}}"
NORMALIZE_NATIVE_EXTENSIONS =
!DL_EXTENSIONS.include?(DOT_SO)
ALTERNATIVE_NATIVE_EXTENSIONS_PATTERN =
/\.(o|bundle|dylib)\z/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Entry

Returns a new instance of Entry.



13
14
15
16
17
# File 'lib/bootscale/entry.rb', line 13

def initialize(path)
  @path = path
  @path_prefix = path.end_with?('/'.freeze) ? path : "#{path}/"
  @features = list_features
end

Instance Attribute Details

#featuresObject (readonly)

Returns the value of attribute features.



11
12
13
# File 'lib/bootscale/entry.rb', line 11

def features
  @features
end

#pathObject (readonly)

Returns the value of attribute path.



11
12
13
# File 'lib/bootscale/entry.rb', line 11

def path
  @path
end