lib/pdk/module/build.rb in pdk-1.7.1 vs lib/pdk/module/build.rb in pdk-1.8.0
- old
+ new
@@ -1,25 +1,16 @@
require 'fileutils'
require 'minitar'
require 'zlib'
require 'pathspec'
require 'find'
+require 'pdk/module'
require 'pdk/tests/unit'
module PDK
module Module
class Build
- DEFAULT_IGNORED = [
- '/pkg/',
- '.*',
- '~*',
- '/coverage',
- '/checksums.json',
- '/REVISION',
- '/spec/fixtures/modules/',
- ].freeze
-
def self.invoke(options = {})
new(options).build
end
attr_reader :module_dir
@@ -211,10 +202,10 @@
if File.realdirpath(target_dir).start_with?(File.realdirpath(module_dir))
ignored = ignored.add("\/#{File.basename(target_dir)}\/")
end
- DEFAULT_IGNORED.each { |r| ignored.add(r) }
+ PDK::Module::DEFAULT_IGNORED.each { |r| ignored.add(r) }
ignored
end
end
end