lib/omnibus/packagers/base.rb in omnibus-6.0.1 vs lib/omnibus/packagers/base.rb in omnibus-6.0.24
- old
+ new
@@ -126,9 +126,28 @@
# (see Util#windows_safe_path)
#
expose :windows_safe_path
#
+ # Skip this packager during build process
+ #
+ # @example
+ # skip_package true
+ #
+ # @param [TrueClass, FalseClass] value
+ # whether to delay validation or not
+ #
+ # @return [TrueClass, FalseClass]
+ # whether to skip this packager type or not
+ def skip_packager(val = false)
+ unless val.is_a?(TrueClass) || val.is_a?(FalseClass)
+ raise InvalidValue.new(:skip_packager, "be TrueClass or FalseClass")
+ end
+ @skip_package ||= val
+ end
+ expose :skip_packager
+
+ #
# @!endgroup
# --------------------------------------------------
#
# Execute this packager by running the following phases in order: