lib/scout/command/test.rb in scout-2.0.7 vs lib/scout/command/test.rb in scout-4.0.0
- old
+ new
@@ -23,15 +23,17 @@
else
Hash.new
end
Scout::Server.new(nil, nil, history, log) do |scout|
- pp scout.process_plugin( :interval => 0,
- :plugin_id => 1,
- :name => "Local Plugin",
- :code => plugin_code,
- :options => plugin_options,
- :path => plugin )
+ scout.prepare_checkin
+ scout.process_plugin( 'interval' => 0,
+ 'plugin_id' => 1,
+ 'name' => "Local Plugin",
+ 'code' => plugin_code,
+ 'options' => plugin_options,
+ 'path' => plugin )
+ scout.show_checkin(:pp)
end
end
end
end
end