Class: Wxp::Command::Op::Gitconf
- Inherits:
-
Wxp::Command::Op
- Object
- CLAide::Command
- Wxp::Command
- Wxp::Command::Op
- Wxp::Command::Op::Gitconf
- Defined in:
- lib/wxp/command/op/gitconf.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Gitconf
constructor
A new instance of Gitconf.
- #openGitConfig ⇒ Object
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Wxp::Command
Constructor Details
#initialize(argv) ⇒ Gitconf
Returns a new instance of Gitconf.
14 15 16 |
# File 'lib/wxp/command/op/gitconf.rb', line 14 def initialize(argv) super end |
Instance Method Details
#openGitConfig ⇒ Object
26 27 28 29 30 |
# File 'lib/wxp/command/op/gitconf.rb', line 26 def openGitConfig puts 'git config路径为:~/.gitconfig'.green puts 'git命令为: git config --list' `git config --list` end |
#run ⇒ Object
22 23 24 |
# File 'lib/wxp/command/op/gitconf.rb', line 22 def run openGitConfig end |
#validate! ⇒ Object
18 19 20 |
# File 'lib/wxp/command/op/gitconf.rb', line 18 def validate! super end |