Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install lunanode
The class is instantiated by either passing it a JSON file containing the keys
api_key, or specifying the ID and key directly:
api = ::.("credentials_file.json") api = ::.(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.
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.
The gem is available as open source under the terms of the MIT License.