Class: Rosette::Core::Commands::EnqueueCommitCommand
- Inherits:
-
GitCommand
- Object
- Command
- GitCommand
- Rosette::Core::Commands::EnqueueCommitCommand
- Includes:
- WithRef, WithRepoName
- Defined in:
- lib/rosette/core/commands/queuing/enqueue_commit_command.rb
Overview
Enqueues a commit for processing on Rosette’s configured queue.
Instance Attribute Summary
Attributes included from WithRef
Attributes included from WithRepoName
Attributes inherited from Command
Instance Method Summary collapse
Methods included from WithRef
#commit_id, #set_commit_id, #set_ref
Methods included from WithRepoName
Methods inherited from GitCommand
Methods inherited from Command
#initialize, #messages, #valid?, validate, validators
Constructor Details
This class inherits a constructor from Rosette::Core::Commands::Command
Instance Method Details
#execute ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/rosette/core/commands/queuing/enqueue_commit_command.rb', line 26 def execute conductor = Rosette::Queuing::Commits::CommitConductor.new( configuration, repo_name, Rosette.logger ) conductor.enqueue(commit_id) end |