Class: Neo4j::Migration
- Inherits:
-
Object
- Object
- Neo4j::Migration
- Defined in:
- lib/neo4j/migration.rb
Direct Known Subclasses
Defined Under Namespace
Classes: AddIdProperty
Instance Method Summary collapse
- #default_path ⇒ Object
- #joined_path(path) ⇒ Object
- #migrate ⇒ Object
- #output(string = '') ⇒ Object
- #print_output(string) ⇒ Object
Instance Method Details
#default_path ⇒ Object
17 18 19 |
# File 'lib/neo4j/migration.rb', line 17 def default_path Rails.root if defined? Rails end |
#joined_path(path) ⇒ Object
21 22 23 |
# File 'lib/neo4j/migration.rb', line 21 def joined_path(path) File.join(path.to_s, 'db', 'neo4j-migrate') end |
#migrate ⇒ Object
5 6 7 |
# File 'lib/neo4j/migration.rb', line 5 def migrate fail 'not implemented' end |
#output(string = '') ⇒ Object
9 10 11 |
# File 'lib/neo4j/migration.rb', line 9 def output(string = '') puts string unless !!ENV['silenced'] end |
#print_output(string) ⇒ Object
13 14 15 |
# File 'lib/neo4j/migration.rb', line 13 def print_output(string) print string unless !!ENV['silenced'] end |