Module: Exodus::RakeHelper
- Defined in:
- lib/exodus/helpers/rake_helper.rb
Instance Method Summary collapse
Instance Method Details
#step ⇒ Object
10 11 12 |
# File 'lib/exodus/helpers/rake_helper.rb', line 10 def step ENV['STEP'] end |
#time_it(task, &block) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/exodus/helpers/rake_helper.rb', line 3 def time_it(task, &block) puts "#{task} starting..." start = Time.now yield puts "#{task} Done in (#{Time.now-start}s)!!" end |