docman 0.0.66 → 0.0.67

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: f83c547f24af83fb0ea7f3b1f8e5fa8c0371dd49
4
- data.tar.gz: d8739853f2f9e9a7737b94c9b1294cb10a75f47b
3
+ metadata.gz: 5918dbc1aafe24b51c57f39b63c7116f2bef1964
4
+ data.tar.gz: 1d84063e94fa897072db82ec75c2cf434c403807
5
5
  SHA512:
6
- metadata.gz: ce1048afa037032f4662dfb6d7b4db06146b3f94724193694f7ee01474840965a0c544c3b8bb3f242e736de15ba20d7766c2b90f3f70694c0b601ee5253d06b8
7
- data.tar.gz: f033ffa55f073b08d1793322e756c2090b30e84de043efebb037a07ca428f7228df59ebb0798e736a5381774d075873978bd6d8aa9134223e5f3d95c5f76b73c
6
+ metadata.gz: 76729b09b05f48e744ae22025c714fdcd6955e1739037491619b591a09f86299ca0f056ed22cc65898a84dc8ddecfb0e797f2ca6588ed21465570ed651f70de5
7
+ data.tar.gz: e3ddecbe5cafd3364aed80507f7584245cb5c303cf81bd7b1c3706e7652633dea77fd4ef3ace34372483b6e61d3010cc38b8e14958046842a5de161c81cf697d
data/lib/application.rb CHANGED
@@ -142,9 +142,13 @@ module Docman
142
142
  result = {}
143
143
  with_rescue(false) do
144
144
  @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target)
145
- info = @docroot_config.structure
146
- @docroot_config.chain(info).values.each do |item|
147
- result.merge! info_recursive(item, command)
145
+ if (command == 'states')
146
+ result = Docman::Application.instance.config['deploy_targets']['git_target']['states']
147
+ else
148
+ info = @docroot_config.structure
149
+ @docroot_config.chain(info).values.each do |item|
150
+ result.merge! info_recursive(item, command)
151
+ end
148
152
  end
149
153
  end
150
154
  File.open(file, 'w') {|f| f.write result.to_json}
@@ -104,5 +104,9 @@ module Docman
104
104
  @deploy_target.name
105
105
  end
106
106
 
107
+ def root_states
108
+ @root.states
109
+ end
110
+
107
111
  end
108
112
  end
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.66"
2
+ VERSION = "0.0.67"
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.66
4
+ version: 0.0.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov