Sha256: abf0432a5058a0f9af500a6b79bd1fd055b1c66c234633949fb0ac4466dea533
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
require 'pathname' module Pacto class ContractFiles def self.for(path) full_path = Pathname.new(path).realpath if full_path.directory? all_json_files = "#{full_path}/**/*.json" Dir.glob(all_json_files).map do |f| Pathname.new(f) end else [full_path] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.3.1 | lib/pacto/contract_files.rb |
pacto-0.3.0 | lib/pacto/contract_files.rb |