Module: DeployPin
- Extended by:
- DeploymentState
- Defined in:
- lib/deploy_pin/task.rb,
lib/deploy_pin.rb,
lib/deploy_pin/engine.rb,
lib/deploy_pin/runner.rb,
lib/deploy_pin/version.rb,
lib/deploy_pin/database.rb,
lib/deploy_pin/collector.rb,
app/models/deploy_pin/record.rb,
lib/deploy_pin/task_criteria.rb,
lib/deploy_pin/database_engine.rb,
lib/deploy_pin/deployment_state.rb,
lib/deploy_pin/parallel_wrapper.rb,
app/models/deploy_pin/application_record.rb,
lib/generators/deploy_pin/task/task_generator.rb,
lib/generators/deploy_pin/install/install_generator.rb,
lib/generators/deploy_pin/upgrade/upgrade_generator.rb
Overview
This module is used to track the state of a deployment.
Defined Under Namespace
Modules: Database, DeploymentState, ParallelWrapper, Runner Classes: ApplicationRecord, Collector, DatabaseEngine, Engine, InstallGenerator, Record, Task, TaskCriteria, TaskGenerator, UpgradeGenerator
Constant Summary collapse
- OPTIONS =
i[ deployment_state_transition fallback_group groups list_formatter short_list_formatter run_formatter statement_timeout task_wrapper tasks_path ].freeze
- DEFAULTS =
{ task_wrapper: ->(_task, task_runner) { task_runner.call } }.freeze
- VERSION =
'1.7.6'
Constants included from DeploymentState
DeploymentState::DEPLOYMENT_ONGOING_TASK, DeploymentState::DEPLOYMENT_OVER_TASK, DeploymentState::DEPLOYMENT_PENDING_TASK, DeploymentState::ONGOING, DeploymentState::PENDING, DeploymentState::STORE_KEY
Class Method Summary collapse
Methods included from DeploymentState
deployment_tasks_code, ongoing_deployment?, pending_deployment?
Class Method Details
.enabled?(option) ⇒ Boolean
55 56 57 |
# File 'lib/deploy_pin.rb', line 55 def self.enabled?(option) instance_variable_defined?("@#{option}") end |
.setup(&block) ⇒ Object
43 44 45 |
# File 'lib/deploy_pin.rb', line 43 def self.setup(&block) instance_eval(&block) end |
.setup_defaults! ⇒ Object
47 48 49 50 51 |
# File 'lib/deploy_pin.rb', line 47 def self.setup_defaults! DEFAULTS.each do |option, value| instance_variable_set(:"@#{option}", value) end end |