Sha256: af88a6e1028c2860fc7b667b3f13eafc31964795f1d0cc334802405f0a295953

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

#!/usr/bin/env ruby

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

options = {}
OptionParser.new do |opts|
  opts.on('-m', '--module NAME', 'The CA module.') {|v| options[:module] = v }
  opts.on('-s', '--stat NAME', 'The CA stat.') {|v| options[:stat] = v }
  opts.on('-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
  puts client.analytics.instrumentations.create options
rescue => e
  puts e.inspect
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smartdc-0.4.0 bin/sdc-createinstrumentation