discharger 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/Rakefile +3 -1
- data/lib/discharger/setup_runner/command_factory.rb +56 -0
- data/lib/discharger/setup_runner/command_registry.rb +62 -0
- data/lib/discharger/setup_runner/commands/asdf_command.rb +61 -0
- data/lib/discharger/setup_runner/commands/base_command.rb +185 -0
- data/lib/discharger/setup_runner/commands/brew_command.rb +26 -0
- data/lib/discharger/setup_runner/commands/bundler_command.rb +25 -0
- data/lib/discharger/setup_runner/commands/config_command.rb +51 -0
- data/lib/discharger/setup_runner/commands/custom_command.rb +41 -0
- data/lib/discharger/setup_runner/commands/database_command.rb +111 -0
- data/lib/discharger/setup_runner/commands/docker_command.rb +100 -0
- data/lib/discharger/setup_runner/commands/env_command.rb +42 -0
- data/lib/discharger/setup_runner/commands/git_command.rb +45 -0
- data/lib/discharger/setup_runner/commands/yarn_command.rb +45 -0
- data/lib/discharger/setup_runner/condition_evaluator.rb +130 -0
- data/lib/discharger/setup_runner/configuration.rb +71 -0
- data/lib/discharger/setup_runner/runner.rb +111 -0
- data/lib/discharger/setup_runner/version.rb +7 -0
- data/lib/discharger/setup_runner.rb +55 -0
- data/lib/discharger/version.rb +1 -1
- data/lib/discharger.rb +1 -0
- data/lib/generators/discharger/install/install_generator.rb +14 -0
- data/lib/generators/discharger/install/templates/setup +36 -0
- data/lib/generators/discharger/install/templates/setup.yml +60 -0
- metadata +48 -2
@@ -0,0 +1,60 @@
|
|
1
|
+
# Discharger Setup Configuration
|
2
|
+
# This file defines the setup process for your application
|
3
|
+
# Customize the configuration based on your project needs
|
4
|
+
|
5
|
+
# Application name
|
6
|
+
app_name: "YourAppName"
|
7
|
+
|
8
|
+
# Database configuration
|
9
|
+
database:
|
10
|
+
port: 5432
|
11
|
+
name: "db-your-app"
|
12
|
+
version: "14"
|
13
|
+
password: "postgres"
|
14
|
+
|
15
|
+
# Redis configuration (if using Redis)
|
16
|
+
redis:
|
17
|
+
port: 6379
|
18
|
+
name: "redis-your-app"
|
19
|
+
version: "latest"
|
20
|
+
|
21
|
+
# Built-in commands to run (empty array runs all available commands)
|
22
|
+
# Available commands: brew, asdf, git, bundler, yarn, config, docker, env, database
|
23
|
+
steps:
|
24
|
+
- brew
|
25
|
+
- asdf
|
26
|
+
- git
|
27
|
+
- bundler
|
28
|
+
- yarn
|
29
|
+
- config
|
30
|
+
- docker
|
31
|
+
- env
|
32
|
+
- database
|
33
|
+
|
34
|
+
# Custom commands for application-specific setup
|
35
|
+
custom_steps:
|
36
|
+
- description: "Seed application data"
|
37
|
+
command: "bin/rails db:seed"
|
38
|
+
|
39
|
+
- description: "Setup application-specific configurations"
|
40
|
+
command: "bin/rails runner 'YourAppSetup.new.configure'"
|
41
|
+
condition: "defined?(YourAppSetup)"
|
42
|
+
|
43
|
+
- description: "Import application data"
|
44
|
+
command: "bin/rails db:seed:import"
|
45
|
+
condition: "File.exist?('db/seeds/import.rb')"
|
46
|
+
|
47
|
+
# Example: Conditional setup based on environment variable
|
48
|
+
# - description: "Seed legacy data"
|
49
|
+
# command: "LEGACY_DATA=true bin/rails db:seed"
|
50
|
+
# condition: "ENV['LEGACY_DATA'] == 'true'"
|
51
|
+
|
52
|
+
# Example: Setup external services
|
53
|
+
# - description: "Setup Elasticsearch"
|
54
|
+
# command: "bin/rails search:setup"
|
55
|
+
# condition: "defined?(Elasticsearch)"
|
56
|
+
|
57
|
+
# Example: Setup background job processing
|
58
|
+
# - description: "Setup Sidekiq"
|
59
|
+
# command: "bundle exec sidekiq -d"
|
60
|
+
# condition: "defined?(Sidekiq)"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discharger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Gay
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: prism
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.19.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.19.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,16 +106,47 @@ files:
|
|
92
106
|
- Rakefile
|
93
107
|
- lib/discharger.rb
|
94
108
|
- lib/discharger/railtie.rb
|
109
|
+
- lib/discharger/setup_runner.rb
|
110
|
+
- lib/discharger/setup_runner/command_factory.rb
|
111
|
+
- lib/discharger/setup_runner/command_registry.rb
|
112
|
+
- lib/discharger/setup_runner/commands/asdf_command.rb
|
113
|
+
- lib/discharger/setup_runner/commands/base_command.rb
|
114
|
+
- lib/discharger/setup_runner/commands/brew_command.rb
|
115
|
+
- lib/discharger/setup_runner/commands/bundler_command.rb
|
116
|
+
- lib/discharger/setup_runner/commands/config_command.rb
|
117
|
+
- lib/discharger/setup_runner/commands/custom_command.rb
|
118
|
+
- lib/discharger/setup_runner/commands/database_command.rb
|
119
|
+
- lib/discharger/setup_runner/commands/docker_command.rb
|
120
|
+
- lib/discharger/setup_runner/commands/env_command.rb
|
121
|
+
- lib/discharger/setup_runner/commands/git_command.rb
|
122
|
+
- lib/discharger/setup_runner/commands/yarn_command.rb
|
123
|
+
- lib/discharger/setup_runner/condition_evaluator.rb
|
124
|
+
- lib/discharger/setup_runner/configuration.rb
|
125
|
+
- lib/discharger/setup_runner/runner.rb
|
126
|
+
- lib/discharger/setup_runner/version.rb
|
95
127
|
- lib/discharger/task.rb
|
96
128
|
- lib/discharger/version.rb
|
97
129
|
- lib/generators/discharger/install/install_generator.rb
|
98
130
|
- lib/generators/discharger/install/templates/discharger_initializer.rb
|
131
|
+
- lib/generators/discharger/install/templates/setup
|
132
|
+
- lib/generators/discharger/install/templates/setup.yml
|
99
133
|
homepage: https://github.com/SOFware/discharger
|
100
134
|
licenses: []
|
101
135
|
metadata:
|
102
136
|
homepage_uri: https://github.com/SOFware/discharger
|
103
137
|
source_code_uri: https://github.com/SOFware/discharger.git
|
104
138
|
changelog_uri: https://github.com/SOFware/discharger/blob/main/CHANGELOG.md
|
139
|
+
post_install_message: |2+
|
140
|
+
|
141
|
+
Thanks for installing Discharger!
|
142
|
+
|
143
|
+
To get started, run the generator in your Rails application:
|
144
|
+
|
145
|
+
rails generate discharger:install
|
146
|
+
|
147
|
+
This will create a bin/setup script and config/setup.yml file
|
148
|
+
to help automate your development environment setup.
|
149
|
+
|
105
150
|
rdoc_options: []
|
106
151
|
require_paths:
|
107
152
|
- lib
|
@@ -116,7 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
161
|
- !ruby/object:Gem::Version
|
117
162
|
version: '0'
|
118
163
|
requirements: []
|
119
|
-
rubygems_version: 3.6.
|
164
|
+
rubygems_version: 3.6.9
|
120
165
|
specification_version: 4
|
121
166
|
summary: Tasks for discharging an application for deployment.
|
122
167
|
test_files: []
|
168
|
+
...
|