lib/entities/generator.rb in lazy_navigator-1.5.0 vs lib/entities/generator.rb in lazy_navigator-2.0.0
- old
+ new
@@ -5,11 +5,11 @@
SUCCESS_RUBY_MSG = 'ruby script generated'.freeze
BASH_SCRIPT_NAME = 'l'.freeze
RUBY_SCRIPT_NAME = 'last_project.rb'.freeze
TEXT_FOR_BASH = "#!/bin/bash\nruby lazy_navigator/last_project.rb\nkill -9 $PPID".freeze
TEXT_FOR_RUBY = "require 'lazy_navigator'\n\nPATH_TO_LAST_PROJECT = 'RubyGarage/codebreaker <-- change me'
- \n#IDE = your ide name in bash, for example VSC = code
- \nLazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: nil)".freeze
+ \nIDE = nil # your ide name in bash, for example Visual Studio Code = 'code'
+ \nLazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: IDE)".freeze
class << self
def generate_script(folder = 'lazy_navigator')
puts SUCCESS_BASH_MSG.green if generate_bash
puts SUCCESS_RUBY_MSG.green if generate_ruby(folder)