lib/ember-cli/app.rb in ember-cli-rails-0.3.3 vs lib/ember-cli/app.rb in ember-cli-rails-0.3.4

- old
+ new

@@ -124,10 +124,14 @@ def build_timeout options.fetch(:build_timeout){ EmberCLI.configuration.build_timeout } end + def watcher + options.fetch(:watcher){ EmberCLI.configuration.watcher } + end + def check_for_build_error! raise_build_error! if build_error? end def reset_build_error! @@ -195,10 +199,15 @@ def add_assets_to_precompile_list Rails.configuration.assets.precompile << /\A#{name}\// end def command(options={}) - watch = options[:watch] ? "--watch" : "" + watch = "" + if options[:watch] + watch = "--watch" + watch += " --watcher #{watcher}" if watcher + end + "#{ember_path} build #{watch} --environment #{environment} --output-path #{dist_path} #{log_pipe}" end def log_pipe "| #{tee_path} -a #{log_path}" if tee_path