Skip to content

Commit

Permalink
[build] add toggle to build ruby webdriver or devtools gems independe…
Browse files Browse the repository at this point in the history
…ntly
  • Loading branch information
titusfortner committed Jan 25, 2024
1 parent ad4fb54 commit e93719e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,10 @@ namespace :rb do
desc 'Generate Ruby gems'
task :build, [:args] do |_task, arguments|
args = Array(arguments[:args]) || []
Bazel.execute('build', args, '//rb:selenium-webdriver')
Bazel.execute('build', args, '//rb:selenium-devtools')
webdriver = args.reject! { |item| item == 'webdriver' }
devtools = args.reject! { |item| item == 'devtools' }
Bazel.execute('build', args, '//rb:selenium-webdriver') if webdriver
Bazel.execute('build', args, '//rb:selenium-devtools') if devtools
end

desc 'Update generated Ruby files for local development'
Expand Down

0 comments on commit e93719e

Please sign in to comment.