dyndoc-ruby 1.3.2 → 1.3.4

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
  SHA256:
3
- metadata.gz: 4f13ef78daad4f7cab557c33988cf7da1100320cdb7a19ab211ee99abde8f8bf
4
- data.tar.gz: af4977f95ec0bc87dde2656419de2168f908cc65433eb0f6e0a2b0f447ab7226
3
+ metadata.gz: 2ec509c1bb4aa90c2960546ea660bb8c1b734d84e090cb7892738f4ec812972d
4
+ data.tar.gz: c58112a3f6326a0c2421058ca28df3fbbe286d3a8766859a9b3fecdd30ff57c4
5
5
  SHA512:
6
- metadata.gz: 239ba8a18e7282920922051dad37a42a8fc8d3bb836aad7a42bb75176a056db398668d7cfb99afcc4a2f02b9bcb63b852486bfa41b1a453c6b5cd5334885a6ea
7
- data.tar.gz: 532883f4d9a29d228bdd7169699bad36b7dbe48fe369b535bf5f92dce0486ef683bd254a19de7a3c64d1c036fddc23890d4c34fb4ee18d462fe93e2821fca756
6
+ metadata.gz: '045482d13e19620b809a07c60d27e2b0e20d55f97406d19aca29545b85d4b21d9bd7d69f28abb9eced64a93ead570a4546d57c2f4032fc7c39b930bc0f17904a'
7
+ data.tar.gz: 722057d19ff0d07762b5c6fffd8a5abf61405f63c3a2757f8592c41ffff023eaaea1806baaa0eb1835090c3b200fd8f13b19c93009427327c926ad24e60ba1a2
@@ -270,10 +270,11 @@ module Dyndoc
270
270
  user: nil #current_email
271
271
  }
272
272
 
273
- puts "watching "+ dyn_root+ " and " + dyn_public_edit_root
273
+ puts "watching "+ dyn_public_edit_root + " and " + dyn_root
274
274
  old_html_file=""
275
- ::FileWatcher.new([dyn_root,dyn_public_edit_root]).watch() do |filename, event|
276
- ##p [:filename,filename,event]
275
+ ::FileWatcher.new([dyn_public_edit_root,dyn_root]).watch() do |filename, event|
276
+ ##
277
+ p [:filename,filename,event]
277
278
  if [:changed,:updated,:new].include? event and File.extname(filename) == ".dyn"
278
279
  ##p [:filename_event,event,filename]
279
280
  if (lint_error=Dyndoc::Linter.check_file(filename)).empty?
@@ -83,6 +83,10 @@ def DyndocTasks.dyn_yml(doc)
83
83
  dyntaskname += "_task.dyn" unless dyntaskname=~/_task.dyn$/
84
84
  dyntaskpath=dyntaskname
85
85
  is_dyntask=File.exists? dyntaskpath
86
+ unless is_dyntask
87
+ dyntaskpath=File.join(ENV["HOME"],".dyndoc-world","tasks",dyntaskname)
88
+ is_dyntask=File.exists? dyntaskpath
89
+ end
86
90
  unless is_dyntask
87
91
  dyntaskpath=File.join(ENV["HOME"],"dyndoc","tasks",dyntaskname)
88
92
  is_dyntask=File.exists? dyntaskpath
@@ -0,0 +1,54 @@
1
+ #!/bin/bash
2
+
3
+ cmd=$1
4
+ script="bin/.action.sh"
5
+
6
+ RootSrv=/home/ubuntu/RodaSrv
7
+
8
+ echo "## do not modify since automatically generated" > $script
9
+
10
+ case $cmd in
11
+ first)
12
+ ## Not necessary for docker
13
+ #mkdir -p ../../RodaSrv/edit
14
+ #mkdir -p ../../RodaSrv/public/users
15
+ ;;
16
+ init)
17
+ ## Create the RodaSrv folder
18
+ echo "mkdir -p /home/ubuntu/RodaSrv/edit" >> $script
19
+ echo "mkdir -p /home/ubuntu/RodaSrv/public" >> $script
20
+ echo "mkdir -p /home/ubuntu/RodaSrv/system" >> $script
21
+ ## Config file
22
+ echo "echo '---' > /home/ubuntu/dyndoc/etc/dyn-html.yml" >> $script
23
+ echo "echo 'root: /home/ubuntu/RodaSrv' >> /home/ubuntu/dyndoc/etc/dyn-html.yml" >> $script
24
+ docker-compose exec --user ubuntu website bash /home/ubuntu/bin/.action.sh
25
+ ;;
26
+ add)
27
+ # get RodaWebUser from environment variable
28
+ RodaWebUser=$2
29
+ if [ "$RodaWebUser" != "" ]; then
30
+ echo "mkdir -p ${RootSrv}/edit/${RodaWebUser}" >> $script
31
+ echo "mkdir -p ${RootSrv}/public/pages" >> $script
32
+ echo "mkdir -p ${RootSrv}/public/users/${RodaWebUser}/pages/${RodaWebUser}" >> $script
33
+ echo "cd ${RootSrv}/public/pages" >> $script
34
+ echo "ln -s ../users/${RodaWebUser}/pages/${RodaWebUser} ${RodaWebUser}" >> $script
35
+ docker-compose exec --user ubuntu website bash /home/ubuntu/bin/.action.sh
36
+ fi
37
+ ;;
38
+ status | start | stop)
39
+ docker-compose exec --user ubuntu website bash -c "/usr/local/bin/dyn-ctl $cmd"
40
+ ;;
41
+ bash)
42
+ docker-compose exec --user ubuntu website bash
43
+ ;;
44
+ build)
45
+ docker-compose build dyndoc-ruby
46
+ docker-compose build website
47
+ ;;
48
+ up)
49
+ docker-compose up -d website
50
+ ;;
51
+ down)
52
+ docker-compose down
53
+ ;;
54
+ esac
@@ -0,0 +1,31 @@
1
+ FROM ubuntu:$DyndocRubyUbuntu$
2
+ MAINTAINER "Cqls Team"
3
+
4
+ RUN groupadd -r ubuntu && useradd -r -g ubuntu ubuntu
5
+
6
+ RUN apt-get update && \
7
+ apt-get -y install sudo
8
+
9
+ RUN apt-get install -y curl wget locales
10
+
11
+ RUN locale-gen fr_FR.UTF-8
12
+ ENV LANG fr_FR.UTF-8
13
+ ENV LANGUAGE fr_FR:fr
14
+ ENV LC_ALL fr_FR.UTF-8
15
+
16
+ RUN bash -c "$(curl -fs https://cqls.dyndoc.fr/users/RCqls/Dyndoc/install/install-ubuntu16.sh)"
17
+
18
+ EXPOSE 9294
19
+
20
+ WORKDIR /home/ubuntu
21
+
22
+ VOLUME ["/home/ubuntu/bin"]
23
+
24
+ RUN chown -R ubuntu:ubuntu /home/ubuntu
25
+
26
+ USER ubuntu
27
+
28
+ RUN dyn-init
29
+
30
+ RUN dpm install rcqls/DyndocWebTools.dyn
31
+ RUN dpm link rcqls/DyndocWebTools.dyn
@@ -0,0 +1,9 @@
1
+ FROM rcqls/dyndoc-ruby
2
+ MAINTAINER "Cqls Team"
3
+
4
+ USER ubuntu
5
+
6
+ RUN mkdir -p /home/ubuntu/RodaSrv/public/edit
7
+ RUN mkdir -p /home/ubuntu/RodaSrv/public/users
8
+
9
+ ENTRYPOINT /usr/local/bin/dyn-ctl start && /bin/bash
@@ -0,0 +1,21 @@
1
+ version: '2'
2
+
3
+ services:
4
+ dyndoc-ruby:
5
+ build:
6
+ context: DockerFiles
7
+ dockerfile: Dockerfile-dyndoc
8
+ image: rcqls/dyndoc-ruby-$DyndocRubyUbuntu$
9
+
10
+ website:
11
+ build:
12
+ context: DockerFiles
13
+ dockerfile: Dockerfile-website
14
+ restart: always
15
+ volumes:
16
+ - $RodaSrvPublic$:/home/ubuntu/RodaSrv/public
17
+ - $RodaSrvSystem$:/home/ubuntu/RodaSrv/install
18
+ - ./bin:/home/ubuntu/bin
19
+ ports:
20
+ - $RodaSrvPort$:9294
21
+ tty: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndoc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RCqls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: R4rb
@@ -229,6 +229,10 @@ files:
229
229
  - share/demo/testBeamer.dyn
230
230
  - share/demo/testBeamer_lib.dyn
231
231
  - share/demo/test_atom.dyn
232
+ - share/dyn-site/docker/dyn-site.sh
233
+ - share/dyn-site/docker/files/Dockerfile-dyndoc
234
+ - share/dyn-site/docker/files/Dockerfile-website
235
+ - share/dyn-site/docker/files/docker-compose.yml
232
236
  - share/dyn-site/dyn-site.sh
233
237
  - share/dyndoc.yml/README.md
234
238
  - share/dyndoc.yml/example.dyndoc.yml