Class: Omgcnb::ScanBuildpackToml

Inherits:
Object
  • Object
show all
Defined in:
lib/omgcnb/scan_buildpack_toml.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir:, exclude: []) ⇒ ScanBuildpackToml

Returns a new instance of ScanBuildpackToml.



6
7
8
9
10
11
# File 'lib/omgcnb/scan_buildpack_toml.rb', line 6

def initialize(dir: , exclude: [])
  @dir = Pathname(dir)
  @exclude = exclude.map {|p| Pathname(p) }

  @buildpack_toml_files = []
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/omgcnb/scan_buildpack_toml.rb', line 13

def call
  scan_dir(@dir)
  self
end

#filesObject



18
19
20
# File 'lib/omgcnb/scan_buildpack_toml.rb', line 18

def files
  @buildpack_toml_files
end