Module: Backup::Configuration
- Extended by:
- Configuration
- Included in:
- Configuration
- Defined in:
- lib/backup/configuration.rb,
lib/backup/configuration/store.rb,
lib/backup/configuration/helpers.rb
Defined Under Namespace
Modules: Helpers Classes: Store
Instance Method Summary collapse
-
#defaults(&block) ⇒ Object
Pass calls on to the proper class and log a warning.
Instance Method Details
#defaults(&block) ⇒ Object
Pass calls on to the proper class and log a warning
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/backup/configuration.rb', line 15 def defaults(&block) klass = eval(self.to_s.sub('Configuration::', '')) Logger.warn Errors::ConfigurationError.new <<-EOS [DEPRECATION WARNING] #{ self }.defaults is being deprecated. To set pre-configured defaults for #{ klass }, use: #{ klass }.defaults EOS klass.defaults(&block) end |