Method: Cerberus::ListCommand#run
- Defined in:
- lib/cerberus/manager.rb
#run ⇒ Object
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/cerberus/manager.rb', line 219 def run projects = Dir["#{HOME}/config/*.yml"] if projects.empty? puts "There are no active projects" else puts "List of active projects:" projects.sort.each do |fn| fn =~ %r{#{HOME}/config/(.*).yml} puts " * #{$1}" end puts "\nType 'cerberus build PROJECT_NAME' to build any of these projects" end end |