Module: Cardio::Seed

Defined in:
lib/cardio/seed.rb

Overview

methods in support of seeding

Constant Summary collapse

TABLES =
%w[cards card_actions card_acts card_changes card_references
schema_migrations schema_migrations_core_cards
schema_migrations_deck schema_migrations_deck_cards].freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.pathObject

Returns the value of attribute path.



9
10
11
# File 'lib/cardio/seed.rb', line 9

def path
  @path
end

.test_pathObject

Returns the value of attribute test_path.



9
10
11
# File 'lib/cardio/seed.rb', line 9

def test_path
  @test_path
end

.test_script_pathObject

Returns the value of attribute test_script_path.



9
10
11
# File 'lib/cardio/seed.rb', line 9

def test_script_path
  @test_script_path
end

Class Method Details

.db_path(*args) ⇒ Object



11
12
13
14
# File 'lib/cardio/seed.rb', line 11

def db_path *args
  parts = [Cardio.gem_root, "db"] + args
  File.join(*parts)
end