Class: EmberCli::Assets::Paths

Inherits:
Object
  • Object
show all
Defined in:
lib/ember_cli/assets/paths.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Paths

Returns a new instance of Paths.



4
5
6
# File 'lib/ember_cli/assets/paths.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#asset_mapObject



12
13
14
# File 'lib/ember_cli/assets/paths.rb', line 12

def asset_map
  Pathname.glob(assets.join("assetMap*.json")).first
end

#assetsObject



8
9
10
# File 'lib/ember_cli/assets/paths.rb', line 8

def assets
  app.dist_path.join("assets")
end

#index_htmlObject



20
21
22
# File 'lib/ember_cli/assets/paths.rb', line 20

def index_html
  app.dist_path.join("index.html")
end

#package_jsonObject



16
17
18
# File 'lib/ember_cli/assets/paths.rb', line 16

def package_json
  app.root_path.join("package.json")
end