Project

lunanode

0.0
No commit activity in last 3 years
No release in over 3 years
Luna Node API for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 0.10
~> 12.0
~> 4.5
~> 3.0
~> 0.47
~> 0.9

Runtime

 Project Readme

Lunanode

Build Status Code Climate Dependency Status Gem Version

A basic implementation of the Luna Node API for Ruby. Unofficial and unsupported by the people at Luna Node.

Installation

Add this line to your application's Gemfile:

gem "lunanode"

And then execute:

$ bundle

Or install it yourself as:

$ gem install lunanode

Usage

The class is instantiated by either passing it a JSON file containing the keys api_id and api_key, or specifying the ID and key directly:

  api = Lunanode::API.new("credentials_file.json")
  api = Lunanode::API.new(api_id: "ABCDEFG", api_key: "HIJKLMNOP")

Once instantiated, action methods follow the example:

  api.vm_list # no parameters
  api.vm_info(vm_id: "My-VM-ID") # required parameters
  api.image_list(region: "Toronto") # optional parameters

More information is available in the documentation, available online at rubydoc.info.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nomoon/lunanode. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.