legionio 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/README.md +16 -17
- data/bitbucket-pipelines.yml +0 -1
- data/docker_deploy.rb +2 -0
- data/lib/legion/extensions.rb +1 -1
- data/lib/legion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d87e4d2b2e7a4d84b7e8b53ae35d2c85176afa044e84a6dbc05de94117ad55ba
|
4
|
+
data.tar.gz: 39eade16268f74203877de223b2d180784b835d4ae461a9de77f2af9eb93a2a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc2ec872756beab5f237253fc8afc1382e320ddf72b2e92188a58bc48c4583222e18e24264b6c4b3d68cb51f82a77cc254f69284baebd0301e89cdcac9946675
|
7
|
+
data.tar.gz: 0fb0073dbfbf8ae687e8cd19027c672a31768f4e07513207f56e5bed97d5f4e3541ad92d58c79b3c696ded6a2e8bc22312ccb0a59bc05b0eaaf9f0d5fee932b8
|
data/Dockerfile
CHANGED
@@ -5,5 +5,5 @@ RUN mkdir /etc/legionio
|
|
5
5
|
RUN apk update && apk add build-base postgresql-dev mysql-client mariadb-dev tzdata gcc git
|
6
6
|
|
7
7
|
COPY . ./
|
8
|
-
RUN gem install legionio
|
8
|
+
RUN gem install legionio tzinfo-data tzinfo --no-document --no-prerelease
|
9
9
|
CMD legionio
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# LegionIO
|
2
2
|
|
3
|
-
LegionIO is a framework for
|
3
|
+
LegionIO is a framework for automating and connecting things. You can see all the docs inside confluence
|
4
4
|
https://legionio.atlassian.net/wiki/spaces/LEGION/overview
|
5
5
|
https://legionio.atlassian.net/wiki/spaces/LEX/pages/7864551/Extensions
|
6
6
|
|
@@ -43,16 +43,15 @@ A nice list in the wiki to view all the extensions, their docs and status
|
|
43
43
|
[Legion Extensions](https://legionio.atlassian.net/wiki/spaces/LEX/pages/7864551/Extensions)
|
44
44
|
|
45
45
|
### Scheduling Tasks
|
46
|
-
1) Ensure you have the Legion::Data gem installed and configured
|
47
|
-
2) Make sure to have `lex-scheduler` extension installed so that it generates the schedules table in the database
|
48
|
-
3) From there you can add a function to be run at a given cron syntax or interval
|
49
|
-
4) Setting the interval column will make the job run X seconds after the last time it is completed and will ignore the cron colum
|
50
|
-
5) Setting the cron column will ensure the job runs at the given times regardless of when it was run last, only works if interval is null
|
46
|
+
1) Ensure you have the Legion::Data gem installed and configured
|
47
|
+
2) Make sure to have `lex-scheduler` extension installed so that it generates the schedules table in the database
|
48
|
+
3) From there you can add a function to be run at a given cron syntax or interval
|
49
|
+
4) Setting the interval column will make the job run X seconds after the last time it is completed and will ignore the cron colum
|
50
|
+
5) Setting the cron column will ensure the job runs at the given times regardless of when it was run last, only works if interval is null
|
51
51
|
6) Cron supports both `*/5 * * * *` style and verbose like `every minute` and `every day at noon`
|
52
52
|
|
53
|
-
|
54
53
|
### Creating Relationships
|
55
|
-
To be populated
|
54
|
+
*To be populated*
|
56
55
|
|
57
56
|
### Conditions
|
58
57
|
You can create complex conditional statements to ensure that when a triggers b, b only runs if certain conditions
|
@@ -147,16 +146,16 @@ to replace other tools.
|
|
147
146
|
Yep.
|
148
147
|
|
149
148
|
### Similiar projects
|
150
|
-
There are multiple projects that are similiar. Some things like IFTTT are great(but is it?) but then again, cost money.
|
151
|
-
* [Node-Red](https://nodered.org/) - No HA but has some good features and a great drag and drop interface
|
152
|
-
* [n8n.io](https://n8n.io/) - Working on HA but [not there yet](https://github.com/n8n-io/n8n/pull/1294)
|
153
|
-
* [StackStorm](https://stackstorm.com/) - Written in Python, has potential but I feel they are removing features to convince you to pay for it
|
154
|
-
* [Jenkins](https://www.jenkins.io/) - It's jenkins. I don't need to say anything else
|
155
|
-
* [Huginn]() - Another IFTTT style app written in ruby. Not sure on this one but it doesn't have HA from what I can tell [github issue](https://github.com/huginn/huginn/issues/2198)
|
149
|
+
There are multiple projects that are similiar. Some things like IFTTT are great(but is it?) but then again, cost money.
|
150
|
+
* [Node-Red](https://nodered.org/) - No HA but has some good features and a great drag and drop interface
|
151
|
+
* [n8n.io](https://n8n.io/) - Working on HA but [not there yet](https://github.com/n8n-io/n8n/pull/1294)
|
152
|
+
* [StackStorm](https://stackstorm.com/) - Written in Python, has potential but I feel they are removing features to convince you to pay for it
|
153
|
+
* [Jenkins](https://www.jenkins.io/) - It's jenkins. I don't need to say anything else
|
154
|
+
* [Huginn]() - Another IFTTT style app written in ruby. Not sure on this one but it doesn't have HA from what I can tell [github issue](https://github.com/huginn/huginn/issues/2198)
|
156
155
|
|
157
156
|
### Other fun facts
|
158
|
-
* Supports Hashicorp vault for storing secrets/settings/etc
|
159
|
-
* Can enable global message encryption so that all messages going through RMQ are encrypted with aes-256-cbc
|
160
|
-
* Each worker generates a private/public key that can be used for internode communication, it also will generate a cluster secret
|
157
|
+
* Supports Hashicorp vault for storing secrets/settings/etc
|
158
|
+
* Can enable global message encryption so that all messages going through RMQ are encrypted with aes-256-cbc
|
159
|
+
* Each worker generates a private/public key that can be used for internode communication, it also will generate a cluster secret
|
161
160
|
for all nodes to have so they can share data accross the entire cluster. The cluster secret by default is stored only in memory and
|
162
161
|
and is generated when the first worker starts
|
data/bitbucket-pipelines.yml
CHANGED
data/docker_deploy.rb
CHANGED
@@ -5,4 +5,6 @@ puts "Building docker image for Legion v#{Legion::VERSION}"
|
|
5
5
|
system("docker build --tag legionio/legion:v#{Legion::VERSION} .")
|
6
6
|
puts 'Pushing to hub.docker.com'
|
7
7
|
system("docker push legionio/legion:v#{Legion::VERSION}")
|
8
|
+
system("docker tag legionio/legion:v#{Legion::VERSION} legionio/legion:lastest")
|
9
|
+
system("docker push legionio/legion:v#{Legion::VERSION}")
|
8
10
|
puts 'completed'
|
data/lib/legion/extensions.rb
CHANGED
@@ -208,7 +208,7 @@ module Legion
|
|
208
208
|
return true if requested == enabled
|
209
209
|
|
210
210
|
Legion::Logging.warn "A total of #{requested - enabled} where skipped"
|
211
|
-
if ENV['_'].include?('bundle')
|
211
|
+
if ENV.key?('_') && ENV['_'].include?('bundle')
|
212
212
|
Legion::Logging.warn 'Please add them to your Gemfile since you are using bundler'
|
213
213
|
else
|
214
214
|
Legion::Logging.warn 'You must have auto_install_missing_lex set to true to auto install missing extensions'
|
data/lib/legion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legionio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|