From ca0f0a1421a25d97dced2394c4fdc7a4d4a22089 Mon Sep 17 00:00:00 2001 From: Yasuhito Takamiya Date: Fri, 2 Oct 2015 10:12:52 +0900 Subject: [PATCH] Updated README to use ./bin/trema. --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7a2888d..9f976d1 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Install ``` $ git clone https://github.com/trema/switch_monitor.git $ cd switch_monitor -$ bundle install +$ bundle install --binstubs ``` @@ -42,30 +42,30 @@ Play Run this controller: ``` -$ bundle exec trema run ./lib/switch_monitor.rb -c trema.conf -0x3 is up (all = 0x3) -0x2 is up (all = 0x2, 0x3) -0x1 is up (all = 0x1, 0x2, 0x3) +$ ./bin/trema run ./lib/switch_monitor.rb -c trema.conf +0x3 is up (All = 0x3) +0x2 is up (All = 0x2, 0x3) +0x1 is up (All = 0x1, 0x2, 0x3) ... ``` On another terminal, stop and restart running switches with `trema -kill` and `trema up` command, and switch_monitor.rb outputs the +stop` and `trema start` command, and switch_monitor.rb outputs the current switch status. ``` (On another terminal) -$ bundle exec trema kill 0x2 -$ bundle exec trema up 0x2 +$ ./bin/trema stop 0x2 +$ ./bin/trema start 0x2 ``` ``` -$ bundle exec trema run ./lib/switch_monitor.rb -c trema.conf -0x3 is up (all = 0x3) -0x2 is up (all = 0x2, 0x3) -0x1 is up (all = 0x1, 0x2, 0x3) -0x2 is down (all = 0x1, 0x3) -0x2 is up (all = 0x1, 0x2, 0x3) +$ ./bin/trema run ./lib/switch_monitor.rb -c trema.conf +0x3 is up (All = 0x3) +0x2 is up (All = 0x2, 0x3) +0x1 is up (All = 0x1, 0x2, 0x3) +0x2 is down (All = 0x1, 0x3) +0x2 is up (All = 0x1, 0x2, 0x3) ``` Enjoy!