Class: ActiveCypher::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/active_cypher/generators/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_base_classesObject



16
17
18
19
20
# File 'lib/active_cypher/generators/install_generator.rb', line 16

def copy_base_classes
  empty_directory 'app/graph'
  template 'application_graph_node.rb',         'app/graph/application_graph_node.rb'
  template 'application_graph_relationship.rb', 'app/graph/application_graph_relationship.rb'
end

#copy_configurationObject



12
13
14
# File 'lib/active_cypher/generators/install_generator.rb', line 12

def copy_configuration
  template 'cypher_databases.yml', 'config/cypher_databases.yml'
end