Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- if ARGV[0] =~ /^i/
- msg = 'In the office'
- elsif ARGV[0] =~ /^o/
- msg = 'Out of the office'
- else
- puts 'first argument must be "i[n]" or "o[ut]"'
- exit
- end
- ARGV.shift
- msg << ': ' + ARGV.join(' ') unless ARGV.empty?
- %x{set_campfire_status.rb "#{msg}"}
Add Comment
Please, Sign In to add comment