class Minitar::CLI::Command
The base for commands in Minitar::CLI
. This will be replaced in a future version by one of the better-executed CLI application frameworks like GLI, after Ruby 1.8 and 1.9 support have been dropped.
Attributes
children[R]
commander[R]
ioe[R]
Public Class Methods
inherited(subclass)
click to toggle source
# File lib/minitar/cli/command.rb, line 15 def inherited(subclass) children << subclass end
new(commander)
click to toggle source
# File lib/minitar/cli/command.rb, line 29 def initialize(commander) @commander = commander @ioe = commander.ioe end
Public Instance Methods
call(_args, _opts = {})
click to toggle source
# File lib/minitar/cli/command.rb, line 38 def call(_args, _opts = {}) raise Minitar::CLI::AbstractCommandError end
Also aliased as: []
help()
click to toggle source
# File lib/minitar/cli/command.rb, line 43 def help raise Minitar::CLI::AbstractCommandError end
name()
click to toggle source
# File lib/minitar/cli/command.rb, line 34 def name raise Minitar::CLI::AbstractCommandError end