Class: VagrantReflect::Reflector
- Inherits:
-
Object
- Object
- VagrantReflect::Reflector
- Defined in:
- lib/vagrant-reflect/util/reflector.rb
Overview
Reflector instance
Constant Summary collapse
- SIGNALS =
%w(TERM INT).freeze
Instance Method Summary collapse
-
#initialize(path) ⇒ Reflector
constructor
A new instance of Reflector.
- #run ⇒ Object
Constructor Details
#initialize(path) ⇒ Reflector
Returns a new instance of Reflector.
12 13 14 |
# File 'lib/vagrant-reflect/util/reflector.rb', line 12 def initialize(path) @path = Pathname.new(File.(path)) end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-reflect/util/reflector.rb', line 16 def run setup_signals start @thread = Thread.current Thread.stop rescue ShutdownSignal stop shutdown_signals end |