class Replr::Stack::Python::REPLMaker
Creates a Python
REPL using docker for a stack and libraries combo
Private Instance Methods
library_file_with(libraries)
click to toggle source
# File lib/replr/stack/python/repl_maker.rb, line 28 def library_file_with(libraries) requirements = '' libraries.each do |library| if library.include?(':') library, version = library.split(':') requirements << "#{library}==#{version}\n" else requirements << "#{library}\n" end end requirements end
set_filter_lines_for_install()
click to toggle source
# File lib/replr/stack/python/repl_maker.rb, line 23 def set_filter_lines_for_install @filter_matching_lines_for_install = [/pip/i] @filter_not_matching_lines_for_install = [/\.cache/i] end
set_library_file_name()
click to toggle source
# File lib/replr/stack/python/repl_maker.rb, line 15 def set_library_file_name @library_file_name = 'requirements.txt' end
set_template_dir()
click to toggle source
# File lib/replr/stack/python/repl_maker.rb, line 19 def set_template_dir @template_dir = __dir__ end