class Chid::Commands::Config
Public Instance Methods
run()
click to toggle source
# File lib/chid/commands/config.rb, line 31 def run puts "\nOpening the .chid.config..." system("#{editor} #{chid_config_path}") end
Private Instance Methods
chid_config_path()
click to toggle source
# File lib/chid/commands/config.rb, line 42 def chid_config_path @chid_config_path ||= ::ChidConfig.new.chid_config_path end
editor()
click to toggle source
# File lib/chid/commands/config.rb, line 38 def editor options['-editor']&.compact&.join || 'vim' end