Class: Polytrix::Command::Base
- Inherits:
-
Object
- Object
- Polytrix::Command::Base
- Includes:
- Polytrix::Core::FileSystemHelper, DefaultLogger, Logging
- Defined in:
- lib/polytrix/command.rb
Constant Summary collapse
- SUPPORTED_EXTENSIONS =
Need standard executor…
%w(py rb js)
Instance Method Summary collapse
-
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
constructor
Contstructs a new Command object.
Methods included from Polytrix::Core::FileSystemHelper
#find_file, #recursive_parent_search
Methods included from StringHelpers
Methods included from StringHelpers::ClassMethods
Methods included from DefaultLogger
Methods included from DefaultLogger::ClassMethods
Constructor Details
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
Contstructs a new Command object.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/polytrix/command.rb', line 25 def initialize(cmd_args, , = {}) @args = cmd_args @options = @action = .fetch(:action, nil) @help = .fetch(:help, -> { 'No help provided' }) @manifest_file = .fetch('manifest', nil) @test_dir = .fetch('test_dir', nil) @loader = .fetch(:loader, nil) @shell = .fetch(:shell) end |