Module: Nutcracker
- Defined in:
- lib/nutcracker.rb,
lib/nutcracker/version.rb
Defined Under Namespace
Classes: Wrapper
Constant Summary collapse
- VERSION =
"0.4.1.23"
Class Method Summary collapse
-
.attach(options) ⇒ Wrapper
Connect to a running instance of Nutcracker ( see Wrapper#initialize ).
-
.executable ⇒ Object
Returns the Nutcracker executable path that is embeded with the gem.
-
.start(options) ⇒ Wrapper
Syntactic sugar for launching the Nutcracker service ( see Wrapper#initialize ).
-
.version ⇒ Object
Returns the version string.
Class Method Details
.attach(options) ⇒ Wrapper
Connect to a running instance of Nutcracker ( see Nutcracker::Wrapper#initialize )
22 23 24 |
# File 'lib/nutcracker.rb', line 22 def self.attach Nutcracker::Wrapper.new .merge attached: true end |
.executable ⇒ Object
Returns the Nutcracker executable path that is embeded with the gem
27 28 29 |
# File 'lib/nutcracker.rb', line 27 def self.executable File.("../../ext/nutcracker/src/nutcracker", __FILE__) end |
.start(options) ⇒ Wrapper
Syntactic sugar for launching the Nutcracker service ( see Nutcracker::Wrapper#initialize )
14 15 16 |
# File 'lib/nutcracker.rb', line 14 def self.start Nutcracker::Wrapper.new().start end |
.version ⇒ Object
Returns the version string
32 33 34 |
# File 'lib/nutcracker.rb', line 32 def self.version Nutcracker::VERSION end |