config/commands.rb in atp-0.8.0 vs config/commands.rb in atp-1.0.0
- old
+ new
@@ -18,17 +18,14 @@
@command = aliases[@command] || @command
# Now branch to the specific task code
case @command
-# Here is an example of how to implement a command, the logic can go straight
-# in here or you can require an external file if preferred.
-when "my_command"
- puts "Doing something..."
- require "commands/my_command" # Would load file lib/commands/my_command.rb
- # You must always exit upon successfully capturing a command to prevent
- # control flowing back to Origen
+when "tags"
+ Dir.chdir Origen.root do
+ system "ripper-tags --recursive lib"
+ end
exit 0
# Example of how to make a command to run unit tests, this simply invokes RSpec on
# the spec directory
when "specs"
@@ -68,9 +65,10 @@
# You probably want to also add the your commands to the help shown via
# origen -h, you can do this be assigning the required text to @application_commands
# before handing control back to Origen. Un-comment the example below to get started.
@application_commands = <<-EOT
specs Run the specs (tests), -c will enable coverage
+ tags Generate ctags for this app
EOT
# examples Run the examples (tests), -c will enable coverage
end