Class: Nutella::Runs

Inherits:
Command show all
Defined in:
lib/core/commands/runs.rb

Instance Method Summary collapse

Instance Method Details

#run(args = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/core/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"
    displayGlobalRuns
  else
    # Is current directory a nutella prj?
    if !Nutella.currentProject.exist?
      return
    end
    displayProjectRuns     
  end
end