class Schlepper::TaskGenerator
Public Instance Methods
onetime_script()
click to toggle source
# File lib/generators/schlepper/task_generator.rb, line 5 def onetime_script @now = Time.now template 'onetime_script.rb.erb', "#{Paths::TASK_DIR}/#{timestamped_task_name}.rb" end
stringified_timestamp()
click to toggle source
# File lib/generators/schlepper/task_generator.rb, line 10 def stringified_timestamp @now.strftime '%Y%m%d%H%M%S' end
timestamped_task_name()
click to toggle source
# File lib/generators/schlepper/task_generator.rb, line 14 def timestamped_task_name "#{stringified_timestamp}_#{file_name}" end