Sha256: b8f923ae1057fe4bfe63aef83689d00eeef2566137e19333bca52f0f2753ad10

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 Bytes

Contents

#!/usr/bin/env ruby
# mock impitool script

require 'optparse'

options = {}
OptionParser.new do |opts|
  opts.banner = "Usage: example.rb [options]"

  # compatibility arguments that are ignored
  opts.on("-I", "--interface [INTERFACE]",  "compatibility with real tool. Ignored")
  opts.on("-H", "--hostname [HOSTNAME]",    "compatibility with real tool. Ignored")
  opts.on("-U", "--user [USERNAME]",        "compatibility with real tool. Ignored")
  opts.on("-P", "--password [PASSWORD]",    "compatibility with real tool. Ignored")
end.parse!

# ARGV options is the action to take
# for testing, just return the action taken
puts ARGV.join(' ')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
consolr-1.1.5 spec/rspec_ipmi
consolr-1.1.4 spec/rspec_ipmi
consolr-1.1.1 spec/rspec_ipmi
consolr-1.1.0 spec/rspec_ipmi
consolr-1.1.3 spec/rspec_ipmi
consolr-1.1.2 spec/rspec_ipmi
consolr-1.0.2 spec/rspec_ipmi