lib/ember-cli/app.rb in ember-cli-rails-0.1.1 vs lib/ember-cli/app.rb in ember-cli-rails-0.1.2
- old
+ new
@@ -1,10 +1,10 @@
require "timeout"
module EmberCLI
class App
- ADDON_VERSION = "0.0.9"
+ ADDON_VERSION = "0.0.11"
EMBER_CLI_VERSION = "~> 0.1.5"
class BuildError < StandardError; end
attr_reader :name, :options, :pid
@@ -97,18 +97,18 @@
def build_timeout
options.fetch(:build_timeout){ configuration.build_timeout }
end
def lockfile
- tmp_path.join("build.lock")
+ @lockfile ||= tmp_path.join("build.lock")
end
def check_for_build_error!
- raise_build_error! if build_error_file.exist?
+ raise_build_error! if build_error?
end
def build_error_file
- tmp_path.join("error.txt")
+ @build_error_file ||= tmp_path.join("error.txt")
end
def reset_build_error!
build_error_file.delete if build_error?
end