Class: Textus::Surfaces::CLI::Verb::SchemaInit
- Inherits:
-
Textus::Surfaces::CLI::Verb
- Object
- Textus::Surfaces::CLI::Verb
- Textus::Surfaces::CLI::Verb::SchemaInit
- Defined in:
- lib/textus/surfaces/cli/verb/schema_init.rb
Instance Attribute Summary
Attributes inherited from Textus::Surfaces::CLI::Verb
Instance Method Summary collapse
Methods inherited from Textus::Surfaces::CLI::Verb
command_name, descendants, #emit, #gate_dispatch, inherited, #initialize, needs_store?, option, options, parent_group, #parse, #resolved_role
Constructor Details
This class inherits a constructor from Textus::Surfaces::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/textus/surfaces/cli/verb/schema_init.rb', line 11 def call(store) name = positional.shift or raise UsageError.new("schema init NAME") raise UsageError.new("schema init requires --from=KEY") unless from_key emit(Textus::Schema::Tools.init(store, name: name, from: from_key)) end |