Class: Nutella::Runs
Instance Method Summary collapse
Instance Method Details
#run(args = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/commands/runs.rb', line 8 def run(args=nil) # If invoked with "all" it will show all the runs under this instance of nutella if args[0]=='--all' || args[0]=='-a' display_all_runs else # If the current directory is not a nutella application, return unless Nutella.current_app.exist? console.warn 'The current directory is not a nutella application' return end # Display list of runs for current nutella application display_app_runs end end |