jobly 0.4.5 → 0.4.6

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: bdebbdae8332039a2a9e2d2ca269d22b62bd9e98218facda2cde2c3adbc0f3c7
4
- data.tar.gz: d79979c42b1c4f531261ccc10ee1474abe1cb3db3f0dcdda42bb43e2d493bc9a
3
+ metadata.gz: b8a8edcc7454410166815e6adf0f105f71d0d741dc9e61b82ca61e7814c6b671
4
+ data.tar.gz: 7e87bb039d4dc9f608ebf747f31aa133ec67dc81a794c683fb0840dd3aeb352c
5
5
  SHA512:
6
- metadata.gz: 322b257413156fdced8f3b0c50e4c68702bf2f079ae9180ada468749356b8452526c067bf3a84b2cfb6361545f4c7cfeaf10cf15102e068b93fdd46579d0ee50
7
- data.tar.gz: e9933a533455045f3df1d90c1127d983cc9b0865f763e70af975674041f5328de548ff78f43c34293cdbb2ba278c840877d0fb10b4893a9a0ff1cccf3f687c97
6
+ metadata.gz: ae811324a752834c19ffa0bd116ef121c39d7b8bbbff95e2814155b4be3276662e641b268c1b62c247c6672de6f8c1ae11542d9e040f383c47070f0a3fa030d3
7
+ data.tar.gz: b682abaf3ac3005861d5546e5650ba51bb0b432c4c896b630d304b02c63fe1efeff2d81712a51351fe89cab301b98d16a910f58adb725a376b31c9dd167b65c3
@@ -9,7 +9,7 @@ module Jobly
9
9
  def shell!
10
10
  TTY::Command.new output: logger,
11
11
  color: false,
12
- dry_run: !!ENV['JOBLY_SHELL_DRY_RUN']
12
+ dry_run: !!Jobly.shell_dry_run
13
13
  end
14
14
  end
15
15
  end
@@ -11,8 +11,10 @@ module Jobly
11
11
  end
12
12
 
13
13
  def self.load_all
14
- Dir["#{Jobly.full_app_path}/**/*.rb"].each { |file| require file }
15
- Dir["#{Jobly.full_jobs_path}/**/*.rb"].each { |file| require file }
14
+ user_bootfile = "#{Jobly.full_app_path}/boot.rb"
15
+ require user_bootfile if File.exist? user_bootfile
16
+ Dir["#{Jobly.full_app_path}/**/*.rb"].sort.each { |file| require file }
17
+ Dir["#{Jobly.full_jobs_path}/**/*.rb"].sort.each { |file| require file }
16
18
  end
17
19
 
18
20
  def self.full_job_name(job)
@@ -25,6 +25,7 @@ module Jobly
25
25
  log: ENV['JOBLY_LOG'],
26
26
  log_level: ENV['JOBLY_LOG_LEVEL'] || 'info',
27
27
  auth: ENV['JOBLY_AUTH'],
28
+ shell_dry_run: ENV['JOBLY_SHELL_DRY_RUN'],
28
29
  mounts: nil,
29
30
  }
30
31
  end
@@ -0,0 +1 @@
1
+ # If this file exists, it will be loaded before everything else
@@ -13,6 +13,7 @@ Jobly.configure do |config|
13
13
  # config.log_level = 'info'
14
14
  # config.slack_webhook = 'https://hooks.slack.com/services/...'
15
15
  # config.slack_channel = '#debug'
16
- # config.slack_user = 'Botly'
16
+ # config.slack_user = 'Jobly'
17
17
  # config.auth = 'admin:secret'
18
+ # config.shell_dry_run = false
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -286,6 +286,7 @@ files:
286
286
  - lib/jobly/sidekiq.rb
287
287
  - lib/jobly/templates/full/Gemfile
288
288
  - lib/jobly/templates/full/Procfile
289
+ - lib/jobly/templates/full/app/boot.rb
289
290
  - lib/jobly/templates/full/app/job.rb
290
291
  - lib/jobly/templates/full/app/other_class.rb
291
292
  - lib/jobly/templates/full/config/info.md