Class: Rain::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rain::CLI
- Defined in:
- lib/rain.rb
Constant Summary collapse
- @@docs =
[]
Instance Method Summary collapse
Instance Method Details
#generate(*sources) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rain.rb', line 11 def generate(*sources) print "Rain is parsing files in the directories #{sources} \n" # loop through all of the file sources and generate docs sources.each do |source| print "Parsing #{source} \n" @doc = Rain::Doc.new(source, File.read(Dir.pwd + "/#{source}"), [:log_parse]) @doc.parse @@docs << @doc end print "\nBuilding html output... \n" build_html end |
#help ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/rain.rb', line 29 def help print " _ \n" print " _( )_ \n" print " _( )_ \n" print " (_________) \n" print " \\ \\ \\ \\ \n" print " \\ \\ \\ \\ \n" print " \n" print "---- RAIN ----\n" print " \n" print "basic usage:\n" print " rain generate file/**/*.rb\n" end |