docman 0.0.67 → 0.0.68
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/lib/application.rb +10 -2
- data/lib/docman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4dfc79e64f15590147bcc61bc095bc9212193377
|
|
4
|
+
data.tar.gz: 6638dcebc20498b57f9da606f07c06b29e87a905
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c79e9dfb96b87c040cfbb326b5e2392198f88607caefe0a32a4219e00f428f2aeb0e19fa82375e223131eb8de288f1acaa5d498e5df8f758740c47de3871e5d1
|
|
7
|
+
data.tar.gz: 1ced7599fec238612c95c7c4e5d09f4682e83724e899172de1c5407599060ab0a622bfe82ca881e5108c25ae593581d21f9e64e87581acad5581b964ac1950a8
|
data/lib/application.rb
CHANGED
|
@@ -142,8 +142,16 @@ module Docman
|
|
|
142
142
|
result = {}
|
|
143
143
|
with_rescue(false) do
|
|
144
144
|
@docroot_config = DocrootConfig.new(@workspace_dir, deploy_target)
|
|
145
|
-
if (command == '
|
|
146
|
-
result = Docman::Application.instance.config['deploy_targets']['git_target']['states']
|
|
145
|
+
if (command == 'full')
|
|
146
|
+
result['states'] = Docman::Application.instance.config['deploy_targets']['git_target']['states']
|
|
147
|
+
result['environments'] = Docman::Application.instance.config['environments']
|
|
148
|
+
|
|
149
|
+
projects = {}
|
|
150
|
+
info = @docroot_config.structure
|
|
151
|
+
@docroot_config.chain(info).values.each do |item|
|
|
152
|
+
projects.merge! info_recursive(item, command)
|
|
153
|
+
end
|
|
154
|
+
result['projects'] = projects
|
|
147
155
|
else
|
|
148
156
|
info = @docroot_config.structure
|
|
149
157
|
@docroot_config.chain(info).values.each do |item|
|
data/lib/docman/version.rb
CHANGED