Sha256: d7fc3f6af4bba68d399b9d7c6262cdfa7111d37011d1d4db2d022bfabaece119

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

require "singleton"

module EmberCli
  class Configuration
    include Singleton

    def app(name, **options)
      app = App.new(name, options)
      apps.store(name, app)
    end

    def apps
      @apps ||= HashWithIndifferentAccess.new
    end

    def bower_path
      @bower_path ||= Helpers.which("bower")
    end

    def npm_path
      @npm_path ||= Helpers.which("npm")
    end

    def tee_path
      @tee_path ||= Helpers.which("tee")
    end

    def bundler_path
      @bundler_path ||= Helpers.which("bundler")
    end

    attr_accessor :watcher
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember-cli-rails-0.6.1 lib/ember_cli/configuration.rb
ember-cli-rails-0.6.0 lib/ember_cli/configuration.rb