Class: LearnOpen::Environments::LinuxEnvironment

Inherits:
BaseEnvironment show all
Defined in:
lib/learn_open/environments/linux_environment.rb

Instance Attribute Summary

Attributes inherited from BaseEnvironment

#environment_vars, #io, #logger, #options, #system_adapter

Instance Method Summary collapse

Methods inherited from BaseEnvironment

#download_lesson, #initialize, #install_dependencies, #managed?, #notify_of_completion, #open_editor, #open_lab, #open_shell, #start_file_backup

Constructor Details

This class inherits a constructor from LearnOpen::Environments::BaseEnvironment

Instance Method Details

#open_jupyter_lab(lesson, location, _editor, _clone_only) ⇒ Object



9
10
11
12
# File 'lib/learn_open/environments/linux_environment.rb', line 9

def open_jupyter_lab(lesson, location, _editor, _clone_only)
  io.puts "Opening Jupyter Lesson..."
  system_adapter.run_command("xdg-open #{lesson.to_url}")
end

#open_readme(lesson) ⇒ Object



4
5
6
7
# File 'lib/learn_open/environments/linux_environment.rb', line 4

def open_readme(lesson)
  io.puts "Opening readme..."
  system_adapter.run_command("xdg-open #{lesson.to_url}")
end