Sha256: deadacfacc3f8fb07f20d2e0fa7a4b8c6005be5ada5bc14b4544bbb167a5fb5d
Contents?: true
Size: 749 Bytes
Versions: 14
Compression:
Stored size: 749 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../base/subcmd' class Trepan::Subcommand::SetConfirm < Trepan::SetBoolSubcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = "Set whether to confirm potentially dangerous operations." IN_LIST = true MIN_ABBREV = 'co'.size end end if __FILE__ == $0 # Demo it. $0 = __FILE__ + 'notagain' # So we don't run this agin require_relative '../../mock' cmd = MockDebugger::sub_setup(Trepan::Subcommand::SetConfirm, false) cmd.run(cmd.prefix + ['off']) cmd.run(cmd.prefix + ['ofn']) cmd.run(cmd.prefix) puts cmd.save_command end
Version data entries
14 entries across 14 versions & 2 rubygems