-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
43 lines (37 loc) · 909 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'mixlib/shellout'
def shellout(cmd)
Mixlib::ShellOut.new(cmd, :live_stream => STDOUT, :timeout => 3600).run_command
end
namespace :ruby do
desc 'Show installed gems'
task :gems_list do
shellout('bundler list')
end
desc 'Update dependencies'
task :gems_update do
puts 'Running Bundler Update'
shellout('bundler update')
end
end
namespace :python do
desc 'Update poetry dependencies'
task :poetry_update do
puts 'Running Poetry Update'
shellout('poetry update')
puts '========================='
puts 'Updating requirements.txt'
shellout('poetry export -f requirements.txt -o requirements.txt --without-hashes')
end
end
namespace :vagrant do
desc 'Show Vagrant boxes'
task :boxes do
shellout('vagrant box list')
end
end
namespace :docker do
desc 'Show Docker contexts'
task :context do
shellout('docker context list')
end
end