Module: Dk::Pkg::Manifest
- Defined in:
- lib/dk-pkg/manifest.rb
Class Method Summary collapse
Class Method Details
.deserialize(serialized_pkgs) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/dk-pkg/manifest.rb', line 12 def self.deserialize(serialized_pkgs) if !serialized_pkgs.kind_of?(String) raise ArgumentError, "serialized pkgs must be a string" end sanitize_array(serialized_pkgs.split(MANIFEST_SEPARATOR)) end |
.serialize(pkgs) ⇒ Object
7 8 9 10 |
# File 'lib/dk-pkg/manifest.rb', line 7 def self.serialize(pkgs) raise ArgumentError, "pkgs must be an array" if !pkgs.kind_of?(Array) sanitize_array(pkgs).join(MANIFEST_SEPARATOR) end |