lib/ember_cli/path_set.rb in ember-cli-rails-0.5.8 vs lib/ember_cli/path_set.rb in ember-cli-rails-0.6.0

- old
+ new

@@ -16,34 +16,34 @@ else rails_root.join(path) end end + def index_file + dist.join("index.html") + end + def tmp @tmp ||= root.join("tmp").tap(&:mkpath) end def log - @log ||= rails_root.join("log", "ember-#{app_name}.#{environment}.log") + @log ||= logs.join("ember-#{app_name}.#{environment}.log") end def dist @dist ||= ember_cli_root.join("apps", app_name).tap(&:mkpath) end - def assets - @assets ||= ember_cli_root.join("assets").tap(&:mkpath) + def asset_map + @asset_map ||= Pathname.glob(assets.join("assetMap*.json")).first end - def app_assets - @app_assets ||= assets.join(app_name) + def assets + @assets ||= dist.join("assets").tap(&:mkpath) end - def applications - @applications ||= rails_root.join("public", "_apps").tap(&:mkpath) - end - def gemfile @gemfile ||= root.join("Gemfile") end def package_json_file @@ -95,10 +95,14 @@ def npm @npm ||= app_options.fetch(:npm_path) { configuration.npm_path } end + def tee + @tee ||= app_options.fetch(:tee_path) { configuration.tee_path } + end + def bundler @bundler ||= app_options.fetch(:bundler_path) do configuration.bundler_path end end @@ -106,9 +110,13 @@ private attr_reader :app, :configuration, :ember_cli_root, :environment, :rails_root delegate :name, :options, to: :app, prefix: true + + def logs + rails_root.join("log").tap(&:mkpath) + end def default_root rails_root.join(app_name) end end