Class: Hecks::Application::Runner
- Inherits:
-
Object
- Object
- Hecks::Application::Runner
- Defined in:
- lib/commands/runner.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(command_name:, module_name:, args:, application:) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(command_name:, module_name:, args:, application:) ⇒ Runner
Returns a new instance of Runner.
6 7 8 9 10 11 12 |
# File 'lib/commands/runner.rb', line 6 def initialize(command_name:, module_name:, args:, application:) @command_name = command_name @module_name = module_name @args = args @application = application @domain_spec = application.domain_spec end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/commands/runner.rb', line 4 def command @command end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
4 5 6 |
# File 'lib/commands/runner.rb', line 4 def module_name @module_name end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 |
# File 'lib/commands/runner.rb', line 14 def call() fetch_command run_command broadcast command end |