Skip to content

Instantly share code, notes, and snippets.

@ahamid ahamid/Rakefile
Created Feb 26, 2011

Embed
What would you like to do?
Variable visibility in Rakefile method
target=ENV['TARGET'] || "whatever"
def helpful_helper(a)
# do something extremely helpful
puts "Visible? #{target}"
end
task :default do
puts "My target is #{target}"
helpful_helper("yo")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.