Module: Xcopier::DSL
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/xcopier/dsl.rb
Constant Summary collapse
- BOOLS =
["1", "yes", "true", true].freeze
Instance Method Summary collapse
Instance Method Details
#initialize(**args) ⇒ Object
35 36 37 38 |
# File 'lib/xcopier/dsl.rb', line 35 def initialize(**args) validate_arguments(args) parse_arguments(args) end |
#operations ⇒ Object
40 41 42 |
# File 'lib/xcopier/dsl.rb', line 40 def operations @operations ||= self.class._operations.map { |operation| Operation.new(self, **operation) } end |
#run ⇒ Object
44 45 46 47 48 49 |
# File 'lib/xcopier/dsl.rb', line 44 def run setup Runner.run(self) ensure teardown end |