Sha256: 209841a7c9c23a10f886e4097481ed76abb1c3be3f0ac3605458927d2e5acb2b

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'cli_helper'

options = {}
OptionParser.new do |opts|
  opts.banner = "Usage: #{File.basename($0)} instrumentation.id [options]"
  opts.on('-v', '--value', 'value raw') { options[:value] = true }
  opts.on_tail('-h','--help') do
    puts opts
    exit
  end

  begin
    opts.parse!(ARGV)
  rescue => e
    puts e.to_s << "\n" << opts.to_s
    exit
  end
end

begin
  if options[:value]
    puts client.analytics.instrumentations(ARGV[0]).value
  else
    puts client.analytics.instrumentations(ARGV[0]).read
  end
rescue => e
  puts e.inspect
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smartdc-0.4.0 bin/sdc-getinstrumentation