Sha256: ec3d52f0a4c83c4bf3b7471c5b1e51367d405b00f1a6819306e8c7284a717344

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

require 'time_block'

class TimeBlock::CLI
  def self.start(*args)
    time = args.shift.strip.to_i
    sleep time
    `terminal-notifier -message #{"Time is out dude !!!".dump} -title "TimeBlock - #{time}s" -sound "default"`
  rescue => e
    puts e.message
    exit(1)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
time_block-0.0.1 lib/time_block/cli.rb