HewlettPackard/hpe3par_ruby_sdk

Name: hpe3par_ruby_sdk

Owner: Hewlett Packard Enterprise

Description: HPE 3PAR Software Development Kit for Ruby

Created: 2018-01-12 17:26:24.0

Updated: 2018-05-15 08:36:07.0

Pushed: 2018-05-15 09:17:11.0

Homepage: null

Size: 92

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Gem Version Build Status

HPE 3PAR Software Development Kit for Ruby

This is a Client library that can talk to the HPE 3PAR Storage array. The 3PAR storage array has a REST web service interface and a command line interface. This client library implements a simple interface for talking with either interface, as needed. The HTTParty library is used to communicate with the REST interface. The net/ssh library is used to communicate with the command line interface over an SSH connection.

Requirements

Capabilities

Installation

To install:

em install hpe3par_sdk

or

Require the gem in your gemfile:

em 'hpe3par_sdk'

Then run $ bundle install

Usage

eate an instance of Hpe3parSdk::Client
= Hpe3parSdk::Client.new('https://my3pararray:8080/api/v1')

gin using 3PAR credentials
login('storage_user', 'mypassword')

ll any of the methods on the client instance
create_volume('db_volume', 'FC_r1', 3209890,{:tpvv => true, :tdvv => false})

gout once you have finished all of your operations
logout

Unit Tests

To run all unit tests:

ake build:spec

The output of the coverage tests will be placed into the coverage dir.

To run a specific test:

spec spec/client_spec.rb

Build

To build the gem:

ke build_client

Documentation

To build the documentation:

ake build:rdoc

To view the built documentation point your browser to:

rdoc/index.html

Feature Requests

If you have a need that is not met by the current implementation, please let us know by creating a new issue. You must sign a Contributor License Agreement first. Contact one of the authors (from Hewlett Packard Enterprise) for details and the CLA.

How to contribute

  1. Fork the repository on Github
  2. Create a named feature branch (like feature_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

Note: HPE reserves the right to reject changes that do not fit the scope of this project, so for feature additions, please open an issue to discuss your ideas before doing the work.

License

This project is licensed under the Apache 2.0 license. Please see LICENSE for more info

Maintainer: Hewlett Packard Enterprise (hpe_storage_ruby_sdk@groups.ext.hpe.com)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.