Module: Vestacp
- Defined in:
- lib/vestacp.rb,
lib/vestacp/base.rb,
lib/vestacp/config.rb,
lib/vestacp/domain.rb,
lib/vestacp/account.rb,
lib/vestacp/version.rb,
lib/vestacp/database.rb
Defined Under Namespace
Classes: Account, Base, Config, Database, Domain
Constant Summary collapse
- VERSION =
"0.1.3"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
-
.configure {|config| ... } ⇒ Object
Pass a block to configure the Vestacp API.
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
11 12 13 |
# File 'lib/vestacp.rb', line 11 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
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
24 25 26 27 |
# File 'lib/vestacp.rb', line 24 def self.configure yield config config end |