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

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

.initObject



12
13
14
# File 'lib/qbuild/config.rb', line 12

def self.init
  PadUtils.copy_file(INIT_CONFIG_FILE, '.')
end

.js_pathsObject



16
17
18
# File 'lib/qbuild/config.rb', line 16

def self.js_paths
  read_key(:js_paths)
end

.minified_js_pathObject



20
21
22
# File 'lib/qbuild/config.rb', line 20

def self.minified_js_path
  read_key(:minified_js_path)
end

.minified_stylesheets_pathObject



24
25
26
# File 'lib/qbuild/config.rb', line 24

def self.minified_stylesheets_path
  read_key(:minified_stylesheets_path)
end

.post_buildObject



40
41
42
# File 'lib/qbuild/config.rb', line 40

def self.post_build
  read_key(:post_build, true)
end

.pre_buildObject



36
37
38
# File 'lib/qbuild/config.rb', line 36

def self.pre_build
  read_key(:pre_build, true)
end

.stylesheet_filenamesObject



28
29
30
# File 'lib/qbuild/config.rb', line 28

def self.stylesheet_filenames
  read_key(:stylesheet_filenames)
end

.stylesheet_nameObject



32
33
34
# File 'lib/qbuild/config.rb', line 32

def self.stylesheet_name
  read_key(:stylesheet_name)
end