Class: Backhoe::Load
- Inherits:
-
Struct
- Object
- Struct
- Backhoe::Load
- Includes:
- Rake::DSL
- Defined in:
- lib/backhoe/load.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#drop_and_create ⇒ Object
Returns the value of attribute drop_and_create.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database
4 5 6 |
# File 'lib/backhoe/load.rb', line 4 def database @database end |
#drop_and_create ⇒ Object
Returns the value of attribute drop_and_create
4 5 6 |
# File 'lib/backhoe/load.rb', line 4 def drop_and_create @drop_and_create end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/backhoe/load.rb', line 4 def path @path end |
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/backhoe/load.rb', line 7 def call case database.adapter when "mysql2", "trilogy" sh mysql_command when "postgresql" sh psql_command else raise "don't know how to load #{database.adapter}" end end |