Sha256: 5e2b4b76121570e34b90769e403c04ed81a222eaffb813c4eeaf51ebec2ce3a0

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.1 lib/ember-cli/configuration.rb
ember-cli-rails-0.4.0 lib/ember-cli/configuration.rb