Class: HecksPackager::AppRunner
- Inherits:
-
Object
- Object
- HecksPackager::AppRunner
- Defined in:
- lib/packager/app_runner.rb
Overview
Runs operations on the domain
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args:, application:) ⇒ AppRunner
constructor
A new instance of AppRunner.
Constructor Details
#initialize(args:, application:) ⇒ AppRunner
Returns a new instance of AppRunner.
4 5 6 7 |
# File 'lib/packager/app_runner.rb', line 4 def initialize(args:, application:) @args = Args.new(args) @application = application end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/packager/app_runner.rb', line 9 def call domain_module.send(args.method, args.data).call end |