Sha256: b4b89fab8ac0b46f223982e90a4cdf89487612348087d76cbc058d98fb82c83c
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'clamp' require 'date' require_relative '../lib/attend' parse_date = Date.method(:parse) Clamp do option '--email', 'EMAIL', 'employee email id', required: true option '--check_in', 'CHECK_IN', 'check in time', default: '9:00' option '--check_out', 'CHECK_OUT', 'check out time', default: '17:00' option '--from', 'FROM', 'date of the first work day', default: Date.today, &parse_date option '--to', 'TO', 'date of the las work day', default: Date.today, &parse_date option '--dry', :flag, 'enables dry run' def execute Attend.register(email: email, from: from, to: to, check_in: check_in, check_out: check_out, dry_run: dry?) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attend-0.2.1 | exe/attend |
attend-0.2.0 | exe/attend |