Class: Allen::UmbracoProject
- Defined in:
- lib/allen/projects/umbraco_project.rb
Instance Attribute Summary
Attributes inherited from Project
Instance Method Summary collapse
Methods inherited from Project
#assets, #build!, #css, #generate_meta_data!, #initialize, #js, #uninstall!
Constructor Details
This class inherits a constructor from Allen::Project
Instance Method Details
#install! ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/allen/projects/umbraco_project.rb', line 4 def install! super packages = Nokogiri::XML(File.read("#{settings.webroot}/packages.config")) umbraco = packages.xpath("//package[@id='UmbracoCms']") package_name = umbraco.xpath('@id').text package_version = umbraco.xpath('@version').text package_path = "#{src_dir}/packages/#{package_name}.#{package_version}/UmbracoFiles" ['umbraco', 'umbraco_client', 'install'].map do |directory| File.join package_path, directory end.each do |directory| cp_r directory, settings.webroot end build! end |