diff options
-rw-r--r-- | lib/dbshell/rails.rb | 9 | ||||
-rw-r--r-- | lib/dbshell/rails/tasks/dbshell.rake | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/dbshell/rails.rb b/lib/dbshell/rails.rb index 803b4ae..cac7229 100644 --- a/lib/dbshell/rails.rb +++ b/lib/dbshell/rails.rb @@ -2,6 +2,13 @@ require "dbshell/rails/version" module DBShell module Rails - # Your code goes here... + Dir[ + File.join(File.dirname(__FILE__), + 'rails', + 'tasks', + '**/*.rake') + ].each do |rake| + load rake + end end end diff --git a/lib/dbshell/rails/tasks/dbshell.rake b/lib/dbshell/rails/tasks/dbshell.rake new file mode 100644 index 0000000..65b74a2 --- /dev/null +++ b/lib/dbshell/rails/tasks/dbshell.rake @@ -0,0 +1,3 @@ +task :dbshell do + puts 'Hello World' +end |