docman 0.0.72 → 0.0.73
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/application.rb +15 -17
- data/lib/docman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f20bdd928771d021d4e49d75bd65316310ff02d9
|
4
|
+
data.tar.gz: 50b9dcc40fe1d1130d2cbef761287bce7c2f5aa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 401982b4874ce3ccab03edc075429e56ef8325bc0657b8c06a7388b5307c5d86aa40867ed29db014460de868386df1dc77ed79dc7ee86da7ed677d06059104b1
|
7
|
+
data.tar.gz: 7be14a1c19cde8ecab12aacfa9ac76a03318d119a52fa567e06f1b8a2c494b37ca99c895625aa3c1b5d08f017f133b9f10c646493f2fd55d7a3b3483f8bd8a6d
|
data/README.md
CHANGED
data/lib/application.rb
CHANGED
@@ -144,23 +144,21 @@ module Docman
|
|
144
144
|
|
145
145
|
def info(command, file, options = false)
|
146
146
|
result = {}
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
result.merge! info_recursive(item, command)
|
163
|
-
end
|
147
|
+
@docroot_config = DocrootConfig.new(@workspace_dir, deploy_target)
|
148
|
+
if (command == 'full')
|
149
|
+
result['states'] = Docman::Application.instance.config['deploy_targets']['git_target']['states']
|
150
|
+
result['environments'] = Docman::Application.instance.config['environments']
|
151
|
+
|
152
|
+
projects = {}
|
153
|
+
info = @docroot_config.structure
|
154
|
+
@docroot_config.chain(info).values.each do |item|
|
155
|
+
projects.merge! info_recursive(item, command)
|
156
|
+
end
|
157
|
+
result['projects'] = projects
|
158
|
+
else
|
159
|
+
info = @docroot_config.structure
|
160
|
+
@docroot_config.chain(info).values.each do |item|
|
161
|
+
result.merge! info_recursive(item, command)
|
164
162
|
end
|
165
163
|
end
|
166
164
|
File.open(file, 'w') {|f| f.write result.to_json}
|
data/lib/docman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.73
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tolstikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|