Sha256: c1629ba7e1c06693a25e66b398d40fc192ec6a8380e9257fd7a6bde6349a5ac6
Contents?: true
Size: 622 Bytes
Versions: 618
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ruby require 'rbbt-util' require 'rbbt/util/simpleopt' $0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands options = SOPT.setup <<EOF Notify on completion of file $ rbbt notify [options] <filename> Creates a <filename>.notify that will trigger a notification when a process creates it -h--help Print this help -k--key* Pushbullet apikey (optinal) EOF if options[:help] if defined? rbbt_usage rbbt_usage else puts SOPT.usage end exit 0 end key = options[:key] || '' file = ARGV.shift notify_file = file + '.notify' Open.write(notify_file, key)
Version data entries
618 entries across 618 versions & 1 rubygems