lib/guard/goliath.rb in guard-goliath-1.1.0 vs lib/guard/goliath.rb in guard-goliath-1.2.0

- old
+ new

@@ -1,12 +1,11 @@ require 'guard' -require 'guard/guard' require 'guard/goliath/runner' require 'rbconfig' module Guard - class Goliath < ::Guard::Guard + class Goliath < Plugin attr_reader :options, :runner DEFAULT_OPTIONS = { port: 9000, environment: 'development', @@ -15,10 +14,10 @@ timeout: 20, app_file: 'app.rb', supress_output: false } - def initialize(watchers = [], options = {}) + def initialize(options = {}) super @options = DEFAULT_OPTIONS.merge(options) @runner = ::Guard::GoliathRunner.new(@options) end