Sha256: c1629ba7e1c06693a25e66b398d40fc192ec6a8380e9257fd7a6bde6349a5ac6

Contents?: true

Size: 622 Bytes

Versions: 619

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

619 entries across 619 versions & 1 rubygems

Version Path
rbbt-util-5.37.9 share/rbbt_commands/watch
rbbt-util-5.37.8 share/rbbt_commands/watch
rbbt-util-5.37.6 share/rbbt_commands/watch
rbbt-util-5.37.4 share/rbbt_commands/watch
rbbt-util-5.37.3 share/rbbt_commands/watch
rbbt-util-5.37.1 share/rbbt_commands/watch
rbbt-util-5.37.0 share/rbbt_commands/watch
rbbt-util-5.36.0 share/rbbt_commands/watch
rbbt-util-5.35.4 share/rbbt_commands/watch
rbbt-util-5.35.3 share/rbbt_commands/watch
rbbt-util-5.35.2 share/rbbt_commands/watch
rbbt-util-5.35.1 share/rbbt_commands/watch
rbbt-util-5.34.27 share/rbbt_commands/watch
rbbt-util-5.34.26 share/rbbt_commands/watch
rbbt-util-5.34.25 share/rbbt_commands/watch
rbbt-util-5.34.24 share/rbbt_commands/watch
rbbt-util-5.34.23 share/rbbt_commands/watch
rbbt-util-5.34.22 share/rbbt_commands/watch
rbbt-util-5.34.21 share/rbbt_commands/watch
rbbt-util-5.34.20 share/rbbt_commands/watch