Class: Maestro::Command::List

Inherits:
Maestro::Command show all
Defined in:
lib/commands/story_commands.rb

Instance Method Summary collapse

Methods inherited from Maestro::Command

command, describe, #initialize

Constructor Details

This class inherits a constructor from Maestro::Command

Instance Method Details

#invokeObject



4
5
6
7
8
# File 'lib/commands/story_commands.rb', line 4

def invoke
  Maestro::Story.find(:all, :params => { :context => 'user', :project_id => Maestro::Config[:project_id] }).collect do |story|
    story.to_s
  end.join("\n")
end