docman 0.0.72 → 0.0.73

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: d5caa6bfd607c5ccfc194c41d74fb1a630244c91
4
- data.tar.gz: 012cb065a465156544d21cfe83d05e893e092c43
3
+ metadata.gz: f20bdd928771d021d4e49d75bd65316310ff02d9
4
+ data.tar.gz: 50b9dcc40fe1d1130d2cbef761287bce7c2f5aa6
5
5
  SHA512:
6
- metadata.gz: 880acad18d0175fc20635ae35cd315f1ce39dbe5bfdee32ca4e46ec607596f489b99ebb49cac6f1c2b9cd798b23daa4a765467493a089c0d62f00895b9c47000
7
- data.tar.gz: ffec4bd91cde9f3c603c21b50fb0e047517836f96139e4bd40bbc878b76bcdd90ce0d8cd21a6a04c1662e193191749e68e894c7e8312d0c2ddc755767919ba44
6
+ metadata.gz: 401982b4874ce3ccab03edc075429e56ef8325bc0657b8c06a7388b5307c5d86aa40867ed29db014460de868386df1dc77ed79dc7ee86da7ed677d06059104b1
7
+ data.tar.gz: 7be14a1c19cde8ecab12aacfa9ac76a03318d119a52fa567e06f1b8a2c494b37ca99c895625aa3c1b5d08f017f133b9f10c646493f2fd55d7a3b3483f8bd8a6d
data/README.md CHANGED
@@ -18,7 +18,9 @@ Init local environment:
18
18
 
19
19
  Build local environment:
20
20
 
21
- $ docman build local environment
21
+ $ docman build local {state}
22
+
23
+ where state can be: development, staging, stable.
22
24
 
23
25
 
24
26
  Work on your website!
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
- with_rescue(false) do
148
- @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target)
149
- if (command == 'full')
150
- result['states'] = Docman::Application.instance.config['deploy_targets']['git_target']['states']
151
- result['environments'] = Docman::Application.instance.config['environments']
152
-
153
- projects = {}
154
- info = @docroot_config.structure
155
- @docroot_config.chain(info).values.each do |item|
156
- projects.merge! info_recursive(item, command)
157
- end
158
- result['projects'] = projects
159
- else
160
- info = @docroot_config.structure
161
- @docroot_config.chain(info).values.each do |item|
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}
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.72"
2
+ VERSION = "0.0.73"
3
3
  end
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.72
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-09-16 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler