-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
36 lines (31 loc) · 767 Bytes
/
Rakefile
File metadata and controls
36 lines (31 loc) · 767 Bytes
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
require 'rake'
# Default task
task default: [:run]
# Run the Hello World program
desc "Run the Hello World program with Featurevisor"
task :run do
puts "Running Ruby Hello World program with Featurevisor..."
puts
system("ruby app.rb")
end
# Clean temporary files
desc "Clean temporary files"
task :clean do
puts "Cleaning temporary files..."
FileList["*.log", "*.tmp", "*.temp"].each do |file|
File.delete(file) if File.exist?(file)
end
puts "Cleanup complete!"
end
# Install dependencies
desc "Install gem dependencies"
task :install do
puts "Installing gem dependencies..."
system("bundle install")
end
# Run RuboCop
desc "Run RuboCop for code style checking"
task :lint do
puts "Running RuboCop..."
system("bundle exec rubocop")
end