Guest User

Untitled

a guest
Apr 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/usr/bin/ruby
  2.  
  3. if ARGV[0] =~ /^i/
  4. msg = 'In the office'
  5. elsif ARGV[0] =~ /^o/
  6. msg = 'Out of the office'
  7. else
  8. puts 'first argument must be "i[n]" or "o[ut]"'
  9. exit
  10. end
  11.  
  12. ARGV.shift
  13. msg << ': ' + ARGV.join(' ') unless ARGV.empty?
  14.  
  15. %x{set_campfire_status.rb "#{msg}"}
Add Comment
Please, Sign In to add comment