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, #warn_if_necessary

Constructor Details

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

Instance Method Details

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



67
68
69
70
71
# File 'lib/learn_open/environments/mac_environment.rb', line 67

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

#open_readme(lesson) ⇒ Object



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

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