Class: MetaCon::Loaders::PythonBrew
- Inherits:
-
Object
- Object
- MetaCon::Loaders::PythonBrew
- Includes:
- CLIHelpers, Shorthand
- Defined in:
- lib/metacon/loaders/python_brew.rb
Constant Summary
Constants included from CLIHelpers
CLIHelpers::ANSI, CLIHelpers::CONTEXT_OS, CLIHelpers::ESCS
Class Method Summary collapse
Methods included from CLIHelpers
#best_profile_file, #cfail, #chd, #check_tool, #color_puts, #command_exists?, #cstr2, #cwarn, #darwin?, #fj, #included, #linux?, #mac?, #result, #shellescape, #status
Methods included from Shorthand
#common_prefix, #included, #relative_path, #shcmd
Class Method Details
.load_dependency(dependency_parts, state, proj, opts) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/metacon/loaders/python_brew.rb', line 6 def self.load_dependency(dependency_parts, state, proj, opts) kind = dependency_parts.shift if kind == 'python' # Ensure pythonbrew installed / current # Make sure that python is installed # Make sure this has its venv installed # Select via env variables etc. elsif kind == 'pip' else raise "I don't handle #{kind} dependencies... am I missing something?" end end |