Sha256: 5ec62661c546b3c20f9ae3840f82ec55d02106ddd8c25c43ea4471719f337595

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

require "singleton"

module EmberCli
  class Configuration
    include Singleton

    def app(name, **options)
      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
      @build_timeout ||= 5
    end

    attr_writer :build_timeout
    attr_accessor :watcher
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember-cli-rails-0.4.3 lib/ember-cli/configuration.rb
ember-cli-rails-0.4.2 lib/ember-cli/configuration.rb