Class: SewingKit::Webpack::Dev

Inherits:
Object
  • Object
show all
Defined in:
lib/sewing_kit/webpack/dev.rb

Defined Under Namespace

Classes: NodeSewingKitNotInstalled

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pidObject

Returns the value of attribute pid.



17
18
19
# File 'lib/sewing_kit/webpack/dev.rb', line 17

def pid
  @pid
end

Instance Method Details

#startObject



19
20
21
22
23
# File 'lib/sewing_kit/webpack/dev.rb', line 19

def start
  @pid = spawn
  at_exit { handle_exit }
  detach
end