Initial commit
This commit is contained in:
12
lib/tasks/toolbox.rake
Normal file
12
lib/tasks/toolbox.rake
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace :toolbox do
|
||||
desc 'Run the toolbox'
|
||||
task :run do
|
||||
run_cmd = %w[docker-compose run --rm toolbox run]
|
||||
|
||||
YAML.safe_load(File.read('config/toolbox.yaml'))
|
||||
.transform_keys { |k| '--' << k }
|
||||
.each_pair { |k, v| run_cmd << k << v.to_s }
|
||||
|
||||
sh *run_cmd
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user