Class: Omgcnb::ScanBuildpackToml
- Inherits:
-
Object
- Object
- Omgcnb::ScanBuildpackToml
- Defined in:
- lib/omgcnb/scan_buildpack_toml.rb
Instance Method Summary collapse
- #call ⇒ Object
- #files ⇒ Object
-
#initialize(dir:, exclude: []) ⇒ ScanBuildpackToml
constructor
A new instance of ScanBuildpackToml.
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
#call ⇒ Object
13 14 15 16 |
# File 'lib/omgcnb/scan_buildpack_toml.rb', line 13 def call scan_dir(@dir) self end |
#files ⇒ Object
18 19 20 |
# File 'lib/omgcnb/scan_buildpack_toml.rb', line 18 def files @buildpack_toml_files end |