docman 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -12
- data/lib/docman/commands/command.rb +5 -5
- data/lib/docman/info.rb +1 -1
- 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: cbf50429d5f634c8850f119dbec72555fb2956b0
|
4
|
+
data.tar.gz: ebb811dc89b506288b36f4b45b21d41994c27518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4f2f628e8f3f48cac6f7563ec57a247ee563fd833d4fcf51f7eba73ec564654e2b79d0471fcc18be4aa809a46dd927a906a070134e4e86c33826b3f8b6d78e
|
7
|
+
data.tar.gz: 2e014ecf61751db071d0cacff9491c92e96b9802dd4a65c3c1eb60382ccbd8caae41698c51090dd8de1c6a1250d820d65a5e57905578bdc978719bd9ab7f0e80
|
data/README.md
CHANGED
@@ -6,31 +6,30 @@ Notes: we are speaking about the code only, media files should be managed separa
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
9
|
+
$ gem install docman
|
10
10
|
|
11
|
-
|
11
|
+
## Usage (in process of documentation)
|
12
12
|
|
13
|
-
|
13
|
+
Init local environment:
|
14
14
|
|
15
|
-
$
|
15
|
+
$ docman init <project-dir> <config-repo> # Template: https://github.com/Adyax/docman-config
|
16
16
|
|
17
|
-
|
17
|
+
Build local environment:
|
18
18
|
|
19
|
-
$
|
19
|
+
$ docman build local environment
|
20
20
|
|
21
|
-
## Usage (in process of documentation)
|
22
21
|
|
23
|
-
|
22
|
+
Work on your website!
|
24
23
|
|
25
|
-
|
24
|
+
|
25
|
+
Bump your production version:
|
26
|
+
|
27
|
+
$ docman bump
|
26
28
|
|
27
29
|
Build the destination docroot using your settings:
|
28
30
|
|
29
31
|
$ docman build <docroot> stable
|
30
32
|
|
31
|
-
Deploy built docroot (Drupal core with multiple websites in multisite) to your environment:
|
32
|
-
|
33
|
-
$ docman deploy <docroot>
|
34
33
|
|
35
34
|
## Contributing
|
36
35
|
|
@@ -129,11 +129,11 @@ module Docman
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def replace_placeholder(value)
|
132
|
-
value.gsub!
|
133
|
-
value.gsub!
|
134
|
-
value.gsub!
|
135
|
-
value.gsub!
|
136
|
-
value.gsub!
|
132
|
+
value.gsub!('$ROOT$', @context['docroot_config'].root['full_build_path']) unless @context['docroot_config'].root['full_build_path'].nil?
|
133
|
+
value.gsub!('$DOCROOT$', @context['docroot_config'].docroot_dir) unless @context['docroot_config'].docroot_dir.nil?
|
134
|
+
value.gsub!('$PROJECT$', @context['full_build_path']) unless @context['full_build_path'].nil?
|
135
|
+
value.gsub!('$INFO$', @context['full_path']) unless @context['full_path'].nil?
|
136
|
+
value.gsub!('$ENVIRONMENT$', @context.environment_name) unless @context.environment_name.nil?
|
137
137
|
end
|
138
138
|
|
139
139
|
end
|
data/lib/docman/info.rb
CHANGED
@@ -22,7 +22,7 @@ module Docman
|
|
22
22
|
if state['source']['type'] == :retrieve_from_repo
|
23
23
|
repo = state['source']['repo'] == :project_repo ? self['repo'] : state['source']['repo']
|
24
24
|
external_state_info = read_yaml_from_file(repo, self['states_path'], state['source']['branch'], state['source']['file'])
|
25
|
-
state.deep_merge! external_state_info unless external_state_info.nil?
|
25
|
+
state.deep_merge! external_state_info unless external_state_info.nil? or state.nil?
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tolstikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|