Sha256: 2a6d6e51e658e105ca95774659ea130baf8720f60322be3aae7de615607ce1e9

Contents?: true

Size: 423 Bytes

Versions: 13

Compression:

Stored size: 423 Bytes

Contents

#!/usr/bin/env ruby
$: << File.join(
	File.dirname(__FILE__),
	'..', 'lib'
)

require 'ns_connector'
require 'pp'

unless ARGV.size == 2 then
	warn(
		"Usage: #{$0}"\
		"<configuration as ruby code> "\
		"<arguments as ruby code>"
	)
	warn('e.g.')
	warn(
		"#{$0}"\
		'"{:account_id => ...}" "{:action => ...}"'
	)
	exit 1
end

NSConnector::Config.set_config!(eval(ARGV[0]))
pp NSConnector::Restlet.execute!(eval(ARGV[1]))

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ns_connector-0.1.0 scripts/run_restlet
ns_connector-0.0.17 scripts/run_restlet
ns_connector-0.0.16 scripts/run_restlet
ns_connector-0.0.15 scripts/run_restlet
ns_connector-0.0.14 scripts/run_restlet
ns_connector-0.0.13 scripts/run_restlet
ns_connector-0.0.12 scripts/run_restlet
ns_connector-0.0.11 scripts/run_restlet
ns_connector-0.0.10 scripts/run_restlet
ns_connector-0.0.9 scripts/run_restlet
ns_connector-0.0.8 scripts/run_restlet
ns_connector-0.0.7 scripts/run_restlet
ns_connector-0.0.6 scripts/run_restlet