Permalink
Browse files

expand -t 2

  • Loading branch information...
1 parent b7efc62 commit e676584630ef6c8e1ae798e473b480637885ef23 @ricardochimal committed Sep 4, 2010
Showing with 1,627 additions and 1,627 deletions.
  1. +2 −2 Rakefile
  2. +27 −27 bin/schema
  3. +165 −165 lib/taps/cli.rb
  4. +39 −39 lib/taps/config.rb
  5. +291 −291 lib/taps/data_stream.rb
  6. +13 −13 lib/taps/db_session.rb
  7. +12 −12 lib/taps/log.rb
  8. +17 −17 lib/taps/monkey.rb
  9. +51 −51 lib/taps/multipart.rb
  10. +525 −525 lib/taps/operation.rb
  11. +58 −58 lib/taps/schema.rb
  12. +154 −154 lib/taps/server.rb
  13. +145 −145 lib/taps/utils.rb
  14. +11 −11 spec/base.rb
  15. +5 −5 spec/cli_spec.rb
  16. +16 −16 spec/data_stream_spec.rb
  17. +21 −21 spec/operation_spec.rb
  18. +26 −26 spec/server_spec.rb
  19. +49 −49 spec/utils_spec.rb
View
@@ -65,8 +65,8 @@ end
desc "copy/paste env vars for dev testing"
task :env do
- puts "export RUBYLIB='#{File.dirname(__FILE__) + '/lib'}'"
- puts "export RUBYOPT='-rrubygems'"
+ puts "export RUBYLIB='#{File.dirname(__FILE__) + '/lib'}'"
+ puts "export RUBYOPT='-rrubygems'"
end
task :default => :spec
View
54 bin/schema 100755 → 100644
@@ -11,44 +11,44 @@ cmd = ARGV.shift.strip rescue ''
database_url = ARGV.shift.strip rescue ''
def show_usage_and_exit
- puts <<EOTXT
- schema console <database_url>
- schema dump <database_url>
- schema dump_table <database_url> <table>
- schema indexes <database_url>
- schema indexes_individual <database_url>
- schema reset_db_sequences <database_url>
- schema load <database_url> <schema_file>
- schema load_indexes <database_url> <indexes_file>
+ puts <<EOTXT
+ schema console <database_url>
+ schema dump <database_url>
+ schema dump_table <database_url> <table>
+ schema indexes <database_url>
+ schema indexes_individual <database_url>
+ schema reset_db_sequences <database_url>
+ schema load <database_url> <schema_file>
+ schema load_indexes <database_url> <indexes_file>
EOTXT
- exit(1)
+ exit(1)
end
case cmd
when 'dump'
- puts Taps::Schema.dump(database_url)
+ puts Taps::Schema.dump(database_url)
when 'dump_table'
- table = ARGV.shift.strip
- puts Taps::Schema.dump_table(database_url, table)
+ table = ARGV.shift.strip
+ puts Taps::Schema.dump_table(database_url, table)
when 'indexes'
- puts Taps::Schema.indexes(database_url)
+ puts Taps::Schema.indexes(database_url)
when 'indexes_individual'
- puts Taps::Schema.indexes_individual(database_url)
+ puts Taps::Schema.indexes_individual(database_url)
when 'load_indexes'
- filename = ARGV.shift.strip rescue ''
- indexes = File.read(filename) rescue show_usage_and_exit
- Taps::Schema.load_indexes(database_url, indexes)
+ filename = ARGV.shift.strip rescue ''
+ indexes = File.read(filename) rescue show_usage_and_exit
+ Taps::Schema.load_indexes(database_url, indexes)
when 'load'
- filename = ARGV.shift.strip rescue ''
- schema = File.read(filename) rescue show_usage_and_exit
- Taps::Schema.load(database_url, schema)
+ filename = ARGV.shift.strip rescue ''
+ schema = File.read(filename) rescue show_usage_and_exit
+ Taps::Schema.load(database_url, schema)
when 'reset_db_sequences'
- Taps::Schema.reset_db_sequences(database_url)
+ Taps::Schema.reset_db_sequences(database_url)
when 'console'
- $db = Sequel.connect(database_url)
- require 'irb'
- require 'irb/completion'
- IRB.start
+ $db = Sequel.connect(database_url)
+ require 'irb'
+ require 'irb/completion'
+ IRB.start
else
- show_usage_and_exit
+ show_usage_and_exit
end
Oops, something went wrong.

0 comments on commit e676584

Please sign in to comment.