Sha256: 0e28ede8ef7a7d1802dbf501169960dd7ebcfbfe59f0bf7661525ed87056070e
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
require 'guard' require 'guard/compat/plugin' module Guard class Pumadev < Plugin require 'guard/pumadev/manager' attr_accessor :manager def initialize(options = {}) super @options = { restart_on_start: false, restart_on_reload: true }.merge(options) @manager = Manager.new end def start manager.restart if options[:restart_on_start] end def reload manager.restart if options[:restart_on_reload] end def run_on_changes(paths) manager.restart end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guard-pumadev-2.0.1 | lib/guard/pumadev.rb |
guard-pumadev-2.0.0 | lib/guard/pumadev.rb |