module Vestacp

Constants

VERSION

Attributes

config[RW]

Public Class Methods

configure() { |config| ... } click to toggle source

Pass a block to configure the Vestacp API

Vestacp.configure do |config|
  config.api_username = 'admin'
  config.api_password = 'n0passw0rd'
  config.api_url      = 'https://example.com:8083/api/'
end
# File lib/vestacp.rb, line 22
def self.configure
  yield config
  config
end