Class: LearnOpen::Environments::MacWithChromeEnvironment

Inherits:
MacEnvironment show all
Defined in:
lib/learn_open/environments/mac_environment.rb

Instance Attribute Summary

Attributes inherited from BaseEnvironment

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

Instance Method Summary collapse

Methods inherited from MacEnvironment

chrome_installed?, classify, #open_lab, #open_xcode, #xcodeproj_file?, #xcworkspace_file?

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



63
64
65
66
# File 'lib/learn_open/environments/mac_environment.rb', line 63

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

#open_readme(lesson) ⇒ Object



58
59
60
61
# File 'lib/learn_open/environments/mac_environment.rb', line 58

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