Class: Cassie::Schema::StructureLoader Deprecated
- Defined in:
- lib/cassie/schema/structure_loader.rb
Overview
Deprecated.
Use SchemaLoader instead
Instance Attribute Summary collapse
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ StructureLoader
constructor
A new instance of StructureLoader.
- #load ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ StructureLoader
8 9 10 |
# File 'lib/cassie/schema/structure_loader.rb', line 8 def initialize(opts={}) @source_path = opts[:source_path] || default_source_path end |
Instance Attribute Details
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path.
5 6 7 |
# File 'lib/cassie/schema/structure_loader.rb', line 5 def source_path @source_path end |
Instance Method Details
#load ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cassie/schema/structure_loader.rb', line 12 def load args = ["-f", source_path] runner = Cassie::Support::SystemCommand.new("cqlsh", args) runner.run raise runner. unless runner.success? end |