Skip to content

Commit

Permalink
run fucking_coffee only when hacker is in the office
Browse files Browse the repository at this point in the history
fixes NARKOZ#2
  • Loading branch information
NARKOZ committed Nov 22, 2015
1 parent de59b60 commit 96fc4b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fucking_coffee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Skip on weekends
exit if Time.now.saturday? || Time.now.sunday?

# Exit early if no sessions with my_username are found
exit if `who`[/my_username/].nil?

require 'net/telnet'

coffee_machine_ip = '10.10.42.42'
Expand Down

0 comments on commit 96fc4b2

Please sign in to comment.