Sha256: ba632e094299dc6f2b775d353eb2a8e7ed0126f0978494659e9f7c1cf1982af0

Contents?: true

Size: 591 Bytes

Versions: 16

Compression:

Stored size: 591 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 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
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ember-cli-rails-0.3.3 lib/ember-cli/configuration.rb
ember-cli-rails-0.3.2 lib/ember-cli/configuration.rb
ember-cli-rails-0.3.1 lib/ember-cli/configuration.rb
ember-cli-rails-0.3.0 lib/ember-cli/configuration.rb
ember-cli-rails-0.2.3 lib/ember-cli/configuration.rb
ember-cli-rails-0.2.2 lib/ember-cli/configuration.rb
ember-cli-rails-0.2.1 lib/ember-cli/configuration.rb
ember-cli-rails-0.2.0 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.13 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.12 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.11 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.10 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.9 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.8 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.7 lib/ember-cli/configuration.rb
ember-cli-rails-0.1.6 lib/ember-cli/configuration.rb