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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5918dbc1aafe24b51c57f39b63c7116f2bef1964
4
- data.tar.gz: 1d84063e94fa897072db82ec75c2cf434c403807
3
+ metadata.gz: 4dfc79e64f15590147bcc61bc095bc9212193377
4
+ data.tar.gz: 6638dcebc20498b57f9da606f07c06b29e87a905
5
5
  SHA512:
6
- metadata.gz: 76729b09b05f48e744ae22025c714fdcd6955e1739037491619b591a09f86299ca0f056ed22cc65898a84dc8ddecfb0e797f2ca6588ed21465570ed651f70de5
7
- data.tar.gz: e3ddecbe5cafd3364aed80507f7584245cb5c303cf81bd7b1c3706e7652633dea77fd4ef3ace34372483b6e61d3010cc38b8e14958046842a5de161c81cf697d
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 == 'states')
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|
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.67"
2
+ VERSION = "0.0.68"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.67
4
+ version: 0.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov