Class: Noir::Command::New::HgIgnore
- Inherits:
-
Base::TerminalCommand
- Object
- Base::Command
- Base::TerminalCommand
- Noir::Command::New::HgIgnore
- Defined in:
- lib/noir/command/new/hgignore.rb
Constant Summary collapse
- HgIgnoreName =
'.hgignore'- HgIgnoreHeader =
"syntax: glob\n\n"
Class Method Summary collapse
Methods inherited from Base::TerminalCommand
Methods inherited from Base::Command
check_command_not_found, description, sub_commands
Class Method Details
.execute(*args) ⇒ Object
7 8 9 10 |
# File 'lib/noir/command/new/hgignore.rb', line 7 def self.execute *args text = Noir::Command::New::GitIgnore.ignore_texts_from_kinds(args) Noir::Command::New.createFile(HgIgnoreName, HgIgnoreHeader + text) end |