Class: FastTrack::Commands
- Inherits:
-
Thor
- Object
- Thor
- FastTrack::Commands
- Defined in:
- lib/fast_track/commands.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/fast_track/commands.rb', line 20 def list puts "" puts "Available Tracks:" puts "" FastTrack::Track.descendants.each do |track| unless track.name.blank? puts "#{track.name.ljust(30)} -- #{track.description}" end end puts "" end |
#new_app(name) ⇒ Object
14 15 16 |
# File 'lib/fast_track/commands.rb', line 14 def new_app(name) FastTrack::App.new(name, [:tracks]) end |