Class: CommandLine::SubCommands::ConfigCommand
- Inherits:
-
Command
- Object
- Command
- CommandLine::SubCommands::ConfigCommand
show all
- Defined in:
- lib/git/contest/command_line/sub_commands/config_command.rb
Instance Attribute Summary
Attributes inherited from Command
#args, #input_stream, #opt_parser, #options, #terminal, #tokens
Instance Method Summary
collapse
Methods inherited from Command
#init
Constructor Details
#initialize(new_args, new_input_stream = STDIN) ⇒ ConfigCommand
Returns a new instance of ConfigCommand.
16
17
18
|
# File 'lib/git/contest/command_line/sub_commands/config_command.rb', line 16
def initialize(new_args, new_input_stream = STDIN)
super
end
|
Instance Method Details
#define_options ⇒ Object
20
21
|
# File 'lib/git/contest/command_line/sub_commands/config_command.rb', line 20
def define_options
end
|
#run(input = "") ⇒ Object
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/git/contest/command_line/sub_commands/config_command.rb', line 26
def run(input = "")
type = next_token
case type
when "site"
run_site
when "get"
run_get
when "set"
run_set
else
usage
end
end
|
#set_default_options ⇒ Object
23
24
|
# File 'lib/git/contest/command_line/sub_commands/config_command.rb', line 23
def set_default_options
end
|