Class: MultiRubyRunner::VersionManager::None
- Inherits:
-
MultiRubyRunner::VersionManager
- Object
- MultiRubyRunner::VersionManager
- MultiRubyRunner::VersionManager::None
- Defined in:
- lib/multi_ruby_runner/version_manager/none.rb
Overview
Represents a ruby environment without a version manager. In this case the Ruby engine invocation must be given via the options. Example: “jruby -S”
Instance Method Summary collapse
-
#compute_process_args(command_string, directory, options) ⇒ Hash
See MultiRubyRunner#execute_command_in_directory.
Methods inherited from MultiRubyRunner::VersionManager
Constructor Details
This class inherits a constructor from MultiRubyRunner::VersionManager
Instance Method Details
#compute_process_args(command_string, directory, options) ⇒ Hash
See MultiRubyRunner#execute_command_in_directory
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/multi_ruby_runner/version_manager/none.rb', line 17 def compute_process_args(command_string, directory, ) if '' == [:ruby_engine_invocation_override].to_s.strip raise "No :ruby_engine_invocation_override given!" end ruby_command = [ [:ruby_engine_invocation_override], # Example: "jruby -S" command_string, # execute command ].join(' ') shell_command_string = ["cd #{ directory }", ruby_command].join('; ') { entire_command: [ [:shell_invocation], shell_command_string, ].join(' '), blocking: [:blocking], environment_overrides: {}, } end |