class Andrake::Manifest
Constants
- ManifestFile
Public Class Methods
load()
click to toggle source
# File lib/andrake/manifest.rb, line 8 def load ; new File.read(manifest_file) ; end
manifest_file()
click to toggle source
# File lib/andrake/manifest.rb, line 7 def manifest_file ; ManifestFile ; end
new(xml)
click to toggle source
# File lib/andrake/manifest.rb, line 11 def initialize(xml) @document = ::Nokogiri::XML(xml) end
Public Instance Methods
save()
click to toggle source
# File lib/andrake/manifest.rb, line 15 def save File.open(self.class.manifest_file, 'w') do |f| @document.write_xml_to f end end