Skip to content

Commit

Permalink
Add debug logic to Rake::Task.out
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hill authored and barancev committed Oct 30, 2019
1 parent 2a11e8b commit a49fb60
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
14 changes: 10 additions & 4 deletions Rakefile
Expand Up @@ -541,17 +541,23 @@ namespace :jruby do
end

namespace :node do
task atoms: %w(
atom_list = %w(
//javascript/atoms/fragments:is-displayed
//javascript/webdriver/atoms:get-attribute
) do
)

task atoms: atom_list do
baseDir = 'javascript/node/selenium-webdriver/lib/atoms'
mkdir_p baseDir

[
puts "rake outs are below"
p rake_outs = [
Rake::Task['//javascript/atoms/fragments:is-displayed'].out,
Rake::Task['//javascript/webdriver/atoms:get-attribute'].out
].each do |atom|
]

rake_outs.each do |atom|
puts "atom is #{atom}\n"
name = File.basename(atom)

puts "Generating #{atom} as #{name}"
Expand Down
14 changes: 13 additions & 1 deletion rake_tasks/rake/task.rb
@@ -1,5 +1,17 @@
module Rake
class Task
attr_accessor :deps, :out
attr_accessor :deps

def out
puts "We are reading the @out value currently!!! It is currently set to #{@out}"
puts self.inspect
@out
end

def out=(value)
puts "We are WRITING the @out value currently!!! WE ARE WRITING IT TO #{value}"
puts self.inspect
@out = value
end
end
end

0 comments on commit a49fb60

Please sign in to comment.