Socket
Book a DemoInstallSign in
Socket

direct_admin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

direct_admin

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

DirectAdmin API Client

An unofficial (and very incomplete) API client for the DirectAdmin webhosting control panel.

Installation

gem "direct_admin"

And then execute:

$ bundle

Or install it yourself as:

$ gem install direct_admin

Usage

First you will need to create an instance of the client:

require "direct_admin"

client = DirectAdmin::Client.new(url: "https://localhost:2222", username: "admin", password: "secret")

And then you can call any of the Command methods on the client:

client.create_login_key("CLI Tool", "abcd1234")

Limitations

This library is purposely not feature complete. The DirectAdmin API is very large, and spread out over a large knowledgebase.

I'm implementing what I need when it's needed, but will welcome contributions, provided they are accompanied with tests.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adam12/direct_admin.

I love pull requests! If you fork this project and modify it, please ping me to see if your changes can be incorporated back into this project.

That said, if your feature idea is nontrivial, you should probably open an issue to discuss it before attempting a pull request.

License

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

FAQs

Package last updated on 16 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.