Class: Allen::Settings
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Methods inherited from Settings
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/allen/settings.rb', line 5 def initialize super pwd = Dir.pwd defaults = Proc.new do name "Umbraco" client "Client" type :umbraco css_input "assets/stylesheets/app/application.less" css_output "css/application.css" css_preprocessor :banshee js_input "assets/javascripts/app/application.coffee" js_output "js/application.js" js_preprocessor :banshee root_dir { pwd } src_dir { "#{root_dir}/src" } solution { "#{src_dir}/#{client}.sln" } targets [:clean, :build] parameters "" webroot { "#{src_dir}/#{client}.#{name}" } end configure defaults end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Settings