Skip to content

Commit

Permalink
just move tasks directory to lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
projectviolet authored and fnando committed Aug 17, 2010
1 parent d35fcd7 commit d897ea2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tasks/pagseguro.rake → lib/tasks/pagseguro.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ namespace :pagseguro do
desc "Send notification to the URL specified in your config/pagseguro.yml file"
task :notify do
require "config/environment"
require File.dirname(__FILE__) + "/../init"
require File.dirname(__FILE__) + "/../lib/pagseguro/rake"
require File.dirname(__FILE__) + "/../../init"
require File.dirname(__FILE__) + "/../pagseguro/rake"
PagSeguro::Rake.run
end

desc "Copy configuration file"
task :setup do
require "FileUtils" unless defined?(FileUtils)
FileUtils.cp File.dirname(__FILE__) + "/../templates/pagseguro.yml", "config/pagseguro.yml"
FileUtils.cp File.dirname(__FILE__) + "/../../templates/pagseguro.yml", "config/pagseguro.yml"

puts "=> [PagSeguro] Please edit 'config/pagseguro.yml'"
end
end
2 changes: 1 addition & 1 deletion test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'
require 'lib/tasks/rails'
2 changes: 1 addition & 1 deletion test/lib/tasks/pagseguro-sample.rake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if RAILS_ROOT == File.expand_path(File.dirname(__FILE__) + "/../..")
load File.expand_path(File.dirname(__FILE__) + "/../../../tasks/pagseguro.rake")
load File.expand_path(File.dirname(__FILE__) + "/../../../lib/tasks/pagseguro.rake")
end

0 comments on commit d897ea2

Please sign in to comment.