Sha256: b30506f2df3b56c805a62b1a87f90fb5c0ddc74491451a29e10fcbbf801d6f74
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "plex_symlinker" require "slop" opts = Slop.parse { |o| o.string "--symlink-target-dir", "Overrides the base dir in symlink targets" o.string "--log", "Log output path" o.on "--help" do puts o exit end } fail ArgumentError, "Please provide at least source and target directory." if opts.arguments.size != 2 if opts[:log] PlexSymlinker.output = File.new(opts[:log], "w") end PlexSymlinker::Operation.new(*opts.arguments, symlink_target_dir: opts[:symlink_target_dir]).perform
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plex_symlinker-0.1.1 | exe/plex_symlinker |
plex_symlinker-0.1.0 | exe/plex_symlinker |