Sha256: c90a45ae0e064038391d1be38c7e1468d82b284653ce0558a787fd98dbac2403
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require "singleton" module EmberCli class Configuration include Singleton def app(name, **options) if options.has_key? :build_timeout deprecate_timeout end if options.has_key? :enable deprecate_enable end apps.store name, App.new(name, options) end def apps @apps ||= HashWithIndifferentAccess.new end def tee_path return @tee_path if defined?(@tee_path) @tee_path = Helpers.which("tee") end def bower_path @bower_path ||= Helpers.which("bower") end def npm_path @npm_path ||= Helpers.which("npm") end def bundler_path @bundler_path ||= Helpers.which("bundler") end def build_timeout=(*) deprecate_timeout end attr_accessor :watcher private def deprecate_enable warn <<-WARN.strip_heredoc The `enable` lambda configuration has been removed. Please read https://github.com/thoughtbot/ember-cli-rails/pull/261 for details. WARN end def deprecate_timeout warn <<-WARN.strip_heredoc The `build_timeout` configuration has been removed. Please read https://github.com/thoughtbot/ember-cli-rails/pull/259 for details. WARN end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ember-cli-rails-0.5.1 | lib/ember-cli/configuration.rb |
ember-cli-rails-0.5.0 | lib/ember-cli/configuration.rb |