Class: DatedBackup::ExecutionContext
- Inherits:
-
Object
- Object
- DatedBackup::ExecutionContext
- Defined in:
- lib/dated_backup/dsl/execution_context.rb
Defined Under Namespace
Modules: ExecutionContextHelper Classes: Around, Main
Instance Method Summary collapse
-
#initialize(name, *params, &blk) ⇒ ExecutionContext
constructor
A new instance of ExecutionContext.
Constructor Details
#initialize(name, *params, &blk) ⇒ ExecutionContext
Returns a new instance of ExecutionContext.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dated_backup/dsl/execution_context.rb', line 13 def initialize(name, *params, &blk) DatedBackup::Warnings.execute_silently do if name == :main params.each do |filename| Main.load filename end elsif name == :before || name == :after Around.new &blk end end end |