Method: Terminitor::AbstractCore#load_termfile
- Defined in:
- lib/terminitor/abstract_core.rb
#load_termfile(path) ⇒ Hash
Loads commands via the termfile and returns them as a hash if it matches legacy yaml, parse as yaml, else use new dsl
68 69 70 |
# File 'lib/terminitor/abstract_core.rb', line 68 def load_termfile(path) File.extname(path) == '.yml' ? Terminitor::Yaml.new(path).to_hash : Terminitor::Dsl.new(path).to_hash end |