Class: GitFeats::Runner
- Inherits:
-
Object
- Object
- GitFeats::Runner
- Defined in:
- lib/git-feats/runner.rb
Class Method Summary collapse
-
.run(*args) ⇒ Object
Run shortcut.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Runner
constructor
Creates a new Runner.
-
#run ⇒ Object
Run the args as one of the following: - Pure git-feats command - Overridden git command - Pure git command.
Constructor Details
Class Method Details
.run(*args) ⇒ Object
Run shortcut
14 15 16 |
# File 'lib/git-feats/runner.rb', line 14 def self.run(*args) new(*args).run end |
Instance Method Details
#run ⇒ Object
Run the args as one of the following:
-
Pure git-feats command
-
Overridden git command
-
Pure git command
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/git-feats/runner.rb', line 22 def run # Pure git-feats command case @args[0] when "feats" run_feats_cmd # Overriden git command when "version" || "--version" version # Pure git command else exec_args end end |