Module: Qbuild::Config
- Defined in:
- lib/qbuild/config.rb
Constant Summary collapse
- INIT_CONFIG_FILE =
"#{File.dirname(__FILE__)}/../assets/.qbuild.json".freeze
Class Method Summary collapse
- .create_target_directory(dir_name) ⇒ Object
- .init ⇒ Object
- .js_paths ⇒ Object
- .minified_js_path ⇒ Object
- .minified_stylesheets_path ⇒ Object
- .post_build ⇒ Object
- .pre_build ⇒ Object
- .stylesheet_filenames ⇒ Object
- .stylesheet_name ⇒ Object
Class Method Details
.create_target_directory(dir_name) ⇒ Object
8 9 10 |
# File 'lib/qbuild/config.rb', line 8 def self.create_target_directory(dir_name) FileUtils.mkdir_p(dir_name) unless File.directory?(dir_name) end |
.init ⇒ Object
12 13 14 |
# File 'lib/qbuild/config.rb', line 12 def self.init PadUtils.copy_file(INIT_CONFIG_FILE, '.') end |
.js_paths ⇒ Object
16 17 18 |
# File 'lib/qbuild/config.rb', line 16 def self.js_paths read_key(:js_paths) end |
.minified_js_path ⇒ Object
20 21 22 |
# File 'lib/qbuild/config.rb', line 20 def self.minified_js_path read_key(:minified_js_path) end |
.minified_stylesheets_path ⇒ Object
24 25 26 |
# File 'lib/qbuild/config.rb', line 24 def self.minified_stylesheets_path read_key(:minified_stylesheets_path) end |
.post_build ⇒ Object
40 41 42 |
# File 'lib/qbuild/config.rb', line 40 def self.post_build read_key(:post_build, true) end |
.pre_build ⇒ Object
36 37 38 |
# File 'lib/qbuild/config.rb', line 36 def self.pre_build read_key(:pre_build, true) end |
.stylesheet_filenames ⇒ Object
28 29 30 |
# File 'lib/qbuild/config.rb', line 28 def self.stylesheet_filenames read_key(:stylesheet_filenames) end |
.stylesheet_name ⇒ Object
32 33 34 |
# File 'lib/qbuild/config.rb', line 32 def self.stylesheet_name read_key(:stylesheet_name) end |