Sha256: fd0044e11a9217e3f51c1243c63ebc8a8b81002ca06aec3c68b5e308938ac859

Contents?: true

Size: 773 Bytes

Versions: 18

Compression:

Stored size: 773 Bytes

Contents

#!/usr/bin/env ruby

require "colored"
require "shellwords"

tool_name = File.basename($0)

full_params = ARGV.shelljoin

puts("[WARNING] You are calling #{tool_name} directly. Usage of the tool name without the `pantograph` prefix is deprecated in pantograph 2.0".yellow)
puts("Please update your scripts to use `pantograph #{tool_name} #{full_params}` instead.".yellow)

exec_arr = ["pantograph", tool_name] + ARGV

# The * turns the array into a parameter list
# This is using the form of exec which takes a variable parameter list, e.g. `exec(command, param1, param2, ...)`
# We need to use that, because otherwise invocations like
# `spaceauth -u user@pantograph.tools` would recognize "-u user@pantograph.tools" as a single parameter and throw errors
exec(*exec_arr)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pantograph-0.1.22 bin/bin-proxy
pantograph-0.1.21 bin/bin-proxy
pantograph-0.1.20 bin/bin-proxy
pantograph-0.1.19 bin/bin-proxy
pantograph-0.1.17 bin/bin-proxy
pantograph-0.1.16 bin/bin-proxy
pantograph-0.1.15 bin/bin-proxy
pantograph-0.1.14 bin/bin-proxy
pantograph-0.1.13 bin/bin-proxy
pantograph-0.1.12 bin/bin-proxy
pantograph-0.1.10 bin/bin-proxy
pantograph-0.1.8 bin/bin-proxy
pantograph-0.1.7 bin/bin-proxy
pantograph-0.1.6 bin/bin-proxy
pantograph-0.1.4 bin/bin-proxy
pantograph-0.1.3 bin/bin-proxy
pantograph-0.1.1 bin/bin-proxy
pantograph-0.1.0 bin/bin-proxy