README.md in leofs_manager_client-0.2.1 vs README.md in leofs_manager_client-0.2.2

- old
+ new

@@ -1,25 +1,20 @@ # leofs_manager_client -TODO: Write a gem description +This is a client for LeoFS Manager. ## Installation + + $ gem install leofs_manager_client -Add this line to your application's Gemfile: - - gem 'leofs_manager' - -And then execute: - - $ bundle - -Or install it yourself as: - - $ gem install leofs_manager - ## Usage -TODO: Write usage instructions here +```ruby +require "leofs_manager_client" + +manager = LeoFSManager::Client.new("localhost:10020") +manager.status #=> #<LeoFSManager::Status:0x00000001578310 @system_info=#<LeoFSManager::Status::SystemInfo:0x000000015782e8 @version="0.10.1", @n="1", @r="1", @w="1", @d="1", @ring_size="128", @ring_cur=nil, @ring_prev=nil>, @node_list=[#<LeoFSManager::Status::NodeInfo:0x00000001578298 @type="S", @node="storage_0@127.0.0.1", @state="running", @ring_cur="a039acc0", @ring_prev="a039acc0", @joined_at="2012-09-21 15:08:22 +0900">, #<LeoFSManager::Status::NodeInfo:0x00000001578248 @type="G", @node="gateway_0@127.0.0.1", @state="running", @ring_cur="a039acc0", @ring_prev="a039acc0", @joined_at="2012-09-21 15:08:25 +0900">]> +``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)