Class: Rack::XapBuilder
- Inherits:
-
Object
- Object
- Rack::XapBuilder
- Defined in:
- lib/rack/xapper.rb
Constant Summary collapse
- F =
::File
- X =
::REXML
Class Method Summary collapse
- .collect_metadata(options) ⇒ Object
- .xap_to_disk(options, xap_file = "") ⇒ Object
- .xap_to_memory(root) ⇒ Object
Class Method Details
.collect_metadata(options) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/rack/xapper.rb', line 31 def () [:application_files] = collect_application_files [:extra_app_files] = collect_extra_app_files [:assembly_files] = Dir.glob(F.join([:assembly_path],"**","*")) [:languages_in_use] = find_languages_in_use end |
.xap_to_disk(options, xap_file = "") ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rack/xapper.rb', line 20 def xap_to_disk(, xap_file="") xap_file = [:xap_name] if xap_file.to_s.empty? xap_file = "#{xap_file}.xap" if xap_file !~ /\.xap$/ () unless .key?(:application_files) Zip::ZipFile.open(F.join([:root], [:xap_path], xap_file), Zip::ZipFile::CREATE) do |zipfile| xap_files(zipfile, ) end end |
.xap_to_memory(root) ⇒ Object
16 17 18 |
# File 'lib/rack/xapper.rb', line 16 def xap_to_memory(root) end |