Method: Commands#read
- Defined in:
- lib/ezgit/commands.rb
#read ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ezgit/commands.rb', line 15 def read commands_dir = File. "commands", File.dirname(__FILE__) files = Dir["#{commands_dir}/*.rb"] files.each do |command_file| require command_file current_symbol = @all.last[:name] @symbols << current_symbol @names << current_symbol.to_s @help_list << "\t#{@names.last.cyan.bold}\t#{@all.last[:help].to_s.bold}\n" end end |