Class: HecksPackager::AppRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/packager/app_runner.rb

Overview

Runs operations on the domain

Instance Method Summary collapse

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

#callObject



9
10
11
# File 'lib/packager/app_runner.rb', line 9

def call
  domain_module.send(args.method, args.data).call
end