Module: Lumberg
- Extended by:
- Lumberg
- Included in:
- Lumberg
- Defined in:
- lib/lumberg.rb,
lib/lumberg/whm.rb,
lib/lumberg/config.rb,
lib/lumberg/cpanel.rb,
lib/lumberg/version.rb,
lib/lumberg/whm/dns.rb,
lib/lumberg/whm/base.rb,
lib/lumberg/whm/cert.rb,
lib/lumberg/whostmgr.rb,
lib/lumberg/cpanel/ftp.rb,
lib/lumberg/cpanel/gpg.rb,
lib/lumberg/cpanel/net.rb,
lib/lumberg/cpanel/ssl.rb,
lib/lumberg/exceptions.rb,
lib/lumberg/format_whm.rb,
lib/lumberg/whm/server.rb,
lib/lumberg/cpanel/base.rb,
lib/lumberg/cpanel/cron.rb,
lib/lumberg/cpanel/mime.rb,
lib/lumberg/cpanel/park.rb,
lib/lumberg/whm/account.rb,
lib/lumberg/cpanel/email.rb,
lib/lumberg/cpanel/mysql.rb,
lib/lumberg/whm/reseller.rb,
lib/lumberg/whostmgr/ssl.rb,
lib/lumberg/cpanel/locale.rb,
lib/lumberg/whostmgr/base.rb,
lib/lumberg/cpanel/backups.rb,
lib/lumberg/cpanel/contact.rb,
lib/lumberg/cpanel/support.rb,
lib/lumberg/cpanel/branding.rb,
lib/lumberg/cpanel/mysql_db.rb,
lib/lumberg/cpanel/password.rb,
lib/lumberg/cpanel/redirect.rb,
lib/lumberg/cpanel/zone_edit.rb,
lib/lumberg/cpanel/dns_lookup.rb,
lib/lumberg/cpanel/sub_domain.rb,
lib/lumberg/whm/transfer_tool.rb,
lib/lumberg/cpanel/box_trapper.rb,
lib/lumberg/cpanel/domain_keys.rb,
lib/lumberg/cpanel/random_data.rb,
lib/lumberg/cpanel/addon_domain.rb,
lib/lumberg/cpanel/file_manager.rb,
lib/lumberg/cpanel/domain_lookup.rb,
lib/lumberg/cpanel/password_strength.rb
Defined Under Namespace
Modules: Cpanel, Whm, Whostmgr Classes: Config, FormatWhm, WhmArgumentError, WhmConnectionError, WhmInvalidUser
Constant Summary collapse
- VERSION =
'4.0.0'
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
- #base_path ⇒ Object
-
#config {|self.configuration| ... } ⇒ Object
Specificy the config via block.
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
25 26 27 |
# File 'lib/lumberg.rb', line 25 def configuration @configuration end |
Instance Method Details
#base_path ⇒ Object
27 28 29 |
# File 'lib/lumberg.rb', line 27 def base_path File.dirname(__FILE__) end |
#config {|self.configuration| ... } ⇒ Object
Specificy the config via block
Attributes
-
debug
- Set to true to log debug info to $stderr, or a file path
Example
Lumberg.config do |c|
c.dubug "path/to/file.log"
end
44 45 46 47 |
# File 'lib/lumberg.rb', line 44 def config yield self.configuration if block_given? self.configuration. end |