Class: Textus::CLI::Verb::Build
- Inherits:
-
Textus::CLI::Verb
- Object
- Textus::CLI::Verb
- Textus::CLI::Verb::Build
- Defined in:
- lib/textus/cli/verb/build.rb
Instance Attribute Summary
Attributes inherited from Textus::CLI::Verb
Instance Method Summary collapse
Methods inherited from Textus::CLI::Verb
command_name, #context_for, descendants, #emit, inherited, #initialize, needs_store?, #operations_for, option, options, parent_group, #parse, #resolved_role
Constructor Details
This class inherits a constructor from Textus::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/textus/cli/verb/build.rb', line 9 def call(store) Textus::Infra::BuildLock.with(root: store.root) do role = store.manifest.roles_with_kind(:generator).first || "builder" ops = Textus::Operations.for(store, role: role) result = ops.publish(prefix: prefix) emit(result) end end |