Sha256: 24ef4403dcdc68281c7a6c80562def9bc63830aebe8b7bca0c566d1c719c6510
Contents?: true
Size: 649 Bytes
Versions: 15
Compression:
Stored size: 649 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../../../app/options' require_relative '../base/subcmd' class Trepan::Subcommand::ShowVersion < Trepan::Subcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = "Show what version of #{Trepan::PROGRAM} this is" MIN_ABBREV = 'vers'.size end def run(args) msg Trepan::show_version end end if __FILE__ == $0 # Demo it. require_relative '../../mock' cmd = MockDebugger::sub_setup(Trepan::Subcommand::ShowVersion) end
Version data entries
15 entries across 15 versions & 2 rubygems