Sha256: 43e6003d15d3d1823ebf09b05f72bff42c8021ad87edd7af70ca9999f1f76c1a

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

require 'pad_utils'

module ConfigReader
  def self.options
    opts = {}
    unless PadUtils.file_exist?('.qbuild.json')
      opts = { js_path: 'scripts', scss_path: 'stylesheets', css_path: 'stylesheets', css_file: 'style.min.css' }
      return opts
    end
    conf = read_config
    opts = {
      js_path: conf[:js_path],
      scss_path: conf[:scss_path],
      css_path: conf[:css_path],
      css_file: conf[:css_file]
    }
    opts
  end

  def self.read_config
    PadUtils.json_file_to_hash('.qbuild.json')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qbuild-0.1.0.pre1 lib/qbuild/config_reader.rb