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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7990b0c192a08c1fd8569cc2a08718c695814136f39c8df08e2b7b4753bfd216
4
- data.tar.gz: 3f2bd0e6d8b7108d5ad17a069927bd7d6e5b4e1ba2dc6746ffac3582f11b9cdc
3
+ metadata.gz: d87e4d2b2e7a4d84b7e8b53ae35d2c85176afa044e84a6dbc05de94117ad55ba
4
+ data.tar.gz: 39eade16268f74203877de223b2d180784b835d4ae461a9de77f2af9eb93a2a8
5
5
  SHA512:
6
- metadata.gz: '05488db705432fec76ee9c07cc5655871e37abfbe02db5319fd2fb9ca60ad637c4d16eb44572f4f8cbac38b54ffbee75c49d3ccfadd7b4c9357996779a21f4fa'
7
- data.tar.gz: 80fc575ff7e64dc60c60510aebb158c0e0cae2608158f1722e15e64718da43111efc760e4dc8891fc014c42dede039b66bcb99e3ef8ff0b0a80c735d79172f5c
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 legion-data tzinfo-data tzinfo --no-document --no-prerelease
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 automated and connecting things. You can see all the docs inside confluence
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
@@ -10,7 +10,6 @@ pipelines:
10
10
  - gem install gem-release
11
11
  - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
12
12
  - gem release
13
- - sleep(2)
14
13
  artifacts:
15
14
  - pkg/**
16
15
  - step:
@@ -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'
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Legion
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2021-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby