ace-support-config 0.11.2 → 0.17.1
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/CHANGELOG.md +88 -0
- data/README.md +4 -1
- data/docs/demo/ace-config-bootstrap-root-files.tape.yml +8 -6
- data/docs/demo/ace-config-getting-started.tape.yml +3 -3
- data/docs/usage.md +36 -4
- data/lib/ace/support/config/cli.rb +56 -12
- data/lib/ace/support/config/molecules/setup_doctor_reporter.rb +270 -0
- data/lib/ace/support/config/organisms/{config_initializer.rb → config_synchronizer.rb} +7 -7
- data/lib/ace/support/config/organisms/setup_doctor.rb +1139 -0
- data/lib/ace/support/config/version.rb +1 -1
- data/lib/ace/support/config.rb +3 -1
- metadata +5 -3
|
@@ -8,7 +8,7 @@ module Ace
|
|
|
8
8
|
module Support
|
|
9
9
|
module Config
|
|
10
10
|
module Organisms
|
|
11
|
-
class
|
|
11
|
+
class ConfigSynchronizer
|
|
12
12
|
PROJECT_ROOT_DIR = "project-root"
|
|
13
13
|
GITIGNORE_ACE_LOCAL_ENTRY = ".ace-local/"
|
|
14
14
|
|
|
@@ -21,17 +21,17 @@ module Ace
|
|
|
21
21
|
@skipped_files = []
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
def
|
|
25
|
-
puts "
|
|
24
|
+
def sync_all
|
|
25
|
+
puts "Syncing all ace-* gem configurations..." if @verbose
|
|
26
26
|
|
|
27
27
|
Models::ConfigTemplates.all_gems.each do |gem_name|
|
|
28
|
-
|
|
28
|
+
sync_gem(gem_name)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
print_summary
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def
|
|
34
|
+
def sync_gem(gem_name)
|
|
35
35
|
gem_name = normalize_gem_name(gem_name)
|
|
36
36
|
|
|
37
37
|
unless Models::ConfigTemplates.gem_exists?(gem_name)
|
|
@@ -39,7 +39,7 @@ module Ace
|
|
|
39
39
|
return
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
puts "\
|
|
42
|
+
puts "\nSyncing #{gem_name}..." if @verbose
|
|
43
43
|
|
|
44
44
|
source_dir = Models::ConfigTemplates.example_dir_for(gem_name)
|
|
45
45
|
target_dir = target_directory
|
|
@@ -182,7 +182,7 @@ module Ace
|
|
|
182
182
|
def print_summary
|
|
183
183
|
return if @dry_run
|
|
184
184
|
|
|
185
|
-
puts "\nConfiguration
|
|
185
|
+
puts "\nConfiguration sync complete:"
|
|
186
186
|
puts " Files copied: #{@copied_files.size}"
|
|
187
187
|
puts " Files skipped: #{@skipped_files.size}"
|
|
188
188
|
|