Skip to content

Commit

Permalink
Import all rake files except the current file in stretchy.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
esmarkowski committed Mar 30, 2024
1 parent be9ba75 commit d23431e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/stretchy/rails/tasks/stretchy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ require 'tty-spinner'
JUSTIFICATION = 90 unless defined?(JUSTIFICATION)

path = File.expand_path(__dir__)
Dir.glob("#{path}/tasks/**/*.rake").each { |f| import f }
Dir.glob("#{path}/**/*.rake").each do |f|
import f unless f == __FILE__
end

namespace :stretchy do
desc "Create all indexes, pipelines and deploy all models"
task up: :environment do
Expand Down Expand Up @@ -34,5 +37,4 @@ namespace :stretchy do
puts Stretchy::MachineLearning::Model.ml_on_ml_nodes!
end


end

0 comments on commit d23431e

Please sign in to comment.