Module: Sredder::Util

Defined in:
lib/sredder/util.rb

Class Method Summary collapse

Class Method Details

.time_stamp(time = Time.now) ⇒ Object

Old: Wrike expects this “yyyy-MM-dd’T’HH:mm.ss” time.strftime(‘%Y-%m-%d %R.00’)

Wrike expects this “yyyy-MM-dd”



9
10
11
# File 'lib/sredder/util.rb', line 9

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

.wait_for_inputObject

just block execution until the user hits ENTER



14
15
16
17
# File 'lib/sredder/util.rb', line 14

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