Module: Sredder::Util

Defined in:
lib/sredder/util.rb

Class Method Summary collapse

Class Method Details

.time_stamp(time = Time.now) ⇒ Object

Wrike expects this “yyyy-MM-dd’T’HH:mm.ss”



6
7
8
# File 'lib/sredder/util.rb', line 6

def self.time_stamp(time = Time.now)
  time.strftime('%Y-%m-%d %R.00')
end

.wait_for_inputObject

just block execution until the user hits ENTER



11
12
13
14
# File 'lib/sredder/util.rb', line 11

def self.wait_for_input
  puts 'Press ENTER to continue...'
  $stdin.gets
end