search for: on_ev

Displaying 8 results from an estimated 8 matches for "on_ev".

Did you mean: onev
2012 Jul 19
5
Detecting unicorn / defining after_fork after master startup
...blished way for adding an after_fork hook after Unicorn has already started up? I''m aware of the ability to do this via the config file but I don''t want my users to have to add something to their unicorn config file. Is there an equivalent to passenger''s PhusionPassenger.on_event(:starting_worker_process) method? Thanks! -Matt
2010 Nov 09
2
AMQP and Unicorn (mq gem)
...od to Qusion for it to monkey patch unicorn too. The code looks like: /vendor/plugins/qusion/lib/amqp.rb module AMQP def self.start_web_dispatcher(amqp_settings={}) @settings = settings.merge(amqp_settings) case Qusion::ServerSpy.server_type when :passenger PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked EM.kill_reactor Thread.current[:mq], @conn = nil, nil end Thread.new { start } die_gracefully_on_signal end when :standard Thread.new { start } die_gracefully_on_signal...
2007 Apr 11
10
DRYer controller specs
So, I''ve been following the recommendations for controller specs here: http://blog.davidchelimsky.net/articles/2006/11/09/tutorial-rspec-stubs-and-mocks Most notably: a single expectation per specify block; the setup block contains only stubs; mock expectations each get their own specify block. (I''m still using 0.8, so I haven''t gotten the describe/it goodness yet.) I
2010 Aug 20
1
ocfs2 hang writing until reboot the cluster-dlm: set_fs_notified: set_fs_notified no nodeid 1812048064#012
...node 1778493632 Aug 18 13:12:31 nodo1 ocfs2_controld: [8786]: info: ais_dispatch: Membership 235508: quorum still lost Aug 18 13:12:31 nodo1 cib: [8475]: info: cib_process_request: Operation complete: op cib_modify for section nodes (origin=local/crmd/279): ok (rc=0) Aug 18 13:12:31 nodo1 haclient: on_event:evt:cib_changed Aug 18 13:12:31 nodo1 cib: [8475]: info: cib_config_changed: Attr changes Aug 18 13:12:31 nodo1 haclient: on_event:evt:cib_changed Aug 18 13:12:31 nodo1 cib: [8475]: info: log_data_element: cib:diff: - <cib have-quorum="1" admin_epoch="0" epoch="1655&q...
2007 Apr 27
0
it "should ...", encouraging "should" via it_should
On 4/27/07, David Chelimsky <dchelimsky at gmail.com> wrote: > Any other suggestions? > > In general, I''m much more inclined to favor an additional parameter > passed to #it over a new method name. Since I suggested in the other thread that perhaps during_event and on_event could append text to the spec string, here''s another similar (but simpler) suggestion that''s been in my mind for a while. it_should could automatically add "should" to the spec string. At first, the "it" syntax left me feeling a bit weird. I like that we...
2005 Jun 25
0
rubytorrent future plans
..., I''m going to do my best to spend some time on RubyTorrent over the next week or so. Here''s what I plan to accomplish: 1. gem packaging 2. Slight API changes: move to Net::BitTorrent rather than RubyTorrent; remove the requirement for ''self'' being passed to on_event (not very Rubyish IMO); etc. 3. Add UDP tracker support. 4. ri documentation I was wondering if anyone has a UDP .torrent file for me to play with (preferable one that''s still active). Also, has anyone tried Ruby 1.8.3-preview on Windows? This allegedly solves the 20-second global...
2007 Jan 03
0
[823] trunk/wxruby2/doc/textile: Remove docs for some deprecated classes
...w_getviewrect -* "TabView#get_vertical_tab_text_spacing":#TabView_getverticaltabtextspacing -* "TabView#get_window":#TabView_getwindow -* "TabView#on_create_tab_control":#TabView_oncreatetabcontrol -* "TabView#layout_tabs":#TabView_layouttabs -* "TabView#on_event":#TabView_onevent -* "TabView#on_tab_activate":#TabView_ontabactivate -* "TabView#on_tab_pre_activate":#TabView_ontabpreactivate -* "TabView#set_background_colour":#TabView_setbackgroundcolour -* "TabView#set_highlight_colour":#TabView_sethighlightcol...
2005 Feb 07
0
Trying to Seed Maybe Bug?
Hi, trying to get rubytorrent to act as a seeder. I''m instantiation the RubyTorrent::Bittorrent with a pre-created MetaInfo object... bt = RubyTorrent::BitTorrent.new(dtorrent.metainfo) bt.on_event(self, :tracker_connected) { |s, url| puts "[tracker] connected to tracker #{url}" } I will attack the test file (just some random strings in a file) and the torrent that was generated for it. . -------------- next part -------------- A non-text attachment was scrubbed... Name: Porp...