Sha256: 5ef63f3f534102f718686b1d921747524c138281550a8bc42bc965b583f51c72
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
require "rack" require "ember_cli/errors" module EmberCli module Deploy class File def initialize(app) @app = app end def mountable? true end def to_rack Rack::File.new(app.dist_path.to_s) end def index_html if index_file.exist? index_file.read else check_for_error_and_raise! end end private attr_reader :app def check_for_error_and_raise! app.check_for_errors! raise BuildError.new <<-MSG EmberCLI failed to generate an `index.html` file. MSG end def index_file app.dist_path.join("index.html") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-cli-rails-0.7.1 | lib/ember_cli/deploy/file.rb |