Sha256: d50889e26af65e469439588766c912d23629d9aebb94f24534b745ca202deb8f

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

module LearnOpen
  module Environments
    class LinuxEnvironment < BaseEnvironment
      def open_readme(lesson)
        warn_if_necessary(lesson)
        io.puts "Opening readme..."
        system_adapter.run_command("xdg-open #{lesson.to_url}")
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
learn-open-1.2.26 lib/learn_open/environments/linux_environment.rb
learn-open-1.2.24 lib/learn_open/environments/linux_environment.rb
learn-open-1.2.23 lib/learn_open/environments/linux_environment.rb