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

Version Path
rbbt-util-5.44.1 share/rbbt_commands/watch
rbbt-util-5.43.0 share/rbbt_commands/watch
rbbt-util-5.42.0 share/rbbt_commands/watch
rbbt-util-5.41.1 share/rbbt_commands/watch
rbbt-util-5.41.0 share/rbbt_commands/watch
rbbt-util-5.40.5 share/rbbt_commands/watch
rbbt-util-5.40.4 share/rbbt_commands/watch
rbbt-util-5.40.3 share/rbbt_commands/watch
rbbt-util-5.40.0 share/rbbt_commands/watch
rbbt-util-5.39.0 share/rbbt_commands/watch
rbbt-util-5.38.1 share/rbbt_commands/watch
rbbt-util-5.38.0 share/rbbt_commands/watch
rbbt-util-5.37.16 share/rbbt_commands/watch
rbbt-util-5.37.15 share/rbbt_commands/watch
rbbt-util-5.37.14 share/rbbt_commands/watch
rbbt-util-5.37.13 share/rbbt_commands/watch
rbbt-util-5.37.12 share/rbbt_commands/watch
rbbt-util-5.37.11 share/rbbt_commands/watch
rbbt-util-5.37.10 share/rbbt_commands/watch
rbbt-util-5.37.9 share/rbbt_commands/watch