<commit_before>[![Gem Version](https://badge.fury.io/rb/vipruby.svg)](http://badge.fury.io/rb/vipruby)  
#Vipruby 0.1.3
=======
Ruby Library for ViPR  

####Install and usage:
gem install vipruby  
require 'vipruby'  


####Example usage files:
-SBUX.rb  
-settings.conf  


####Create a vipr object:
    vipr = Vipruby.new([base_url]:[port],[user],[password])

####Create a host object:
	host = Host.new(type: 'other',name: [name],fqdn: [fqdn],initiator_node: [wwnn],initiators_port: ['WWPN1','WWPN2'],protocol: [fc/iscsi],discoverable: [true/false])

####Methods that matter:
vipr.add_host(*hostObject.generate_json*)  
vipr.add_initiators(*hostObject.generate_initiators_json*,*host_href*)  
vipr.add_host_and_initators(*hostObject*)  
vipr.host_exists?(*hostObject.name*)  
vipr.find_host_object(*hostObject.name*)
vipr.get_all_hosts  
vipr.get_host(*host_href*)  
vipr.deactivate_host(*host_href*)  

####Fun facts
To get a host href -> vipr.find_host_object(host.name)['resource'][0]['link']['href']
<commit_msg>updating readme<commit_after>[![Gem Version](https://badge.fury.io/rb/vipruby.svg)](http://badge.fury.io/rb/vipruby)  
#Vipruby 0.1.3
Ruby Library for ViPR  

####Install and usage:
gem install vipruby  
require 'vipruby'  


####Example usage files:
-SBUX.rb  
-settings.conf  


####Create a vipr object:
    vipr = Vipruby.new([base_url]:[port],[user],[password])

####Create a host object:
	host = Host.new(type: 'other',name: [name],fqdn: [fqdn],initiator_node: [wwnn],initiators_port: ['WWPN1','WWPN2'],protocol: [fc/iscsi],discoverable: [true/false])

####Methods that matter:
vipr.add_host(*hostObject.generate_json*)  
vipr.add_initiators(*hostObject.generate_initiators_json*,*host_href*)  
vipr.add_host_and_initators(*hostObject*)  
vipr.host_exists?(*hostObject.name*)  
vipr.find_host_object(*hostObject.name*)
vipr.get_all_hosts  
vipr.get_host(*host_href*)  
vipr.deactivate_host(*host_href*)  

####Fun facts
To get a host href -> vipr.find_host_object(host.name)['resource'][0]['link']['href']

{'fraction_non_alphanumeric': 0.18275862068965518, 'fraction_numerical': 0.005911330049261084, 'mean_word_length': 6.227758007117438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2419115', 'n_tokens_mistral': 835, 'n_tokens_neox': 797, 'n_words': 119}