Class: PGit::Command::Run
- Inherits:
-
Object
- Object
- PGit::Command::Run
- Extended by:
- Forwardable
- Defined in:
- lib/pgit/command/run.rb
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(app) ⇒ Run
constructor
A new instance of Run.
Constructor Details
#initialize(app) ⇒ Run
Returns a new instance of Run.
9 10 11 |
# File 'lib/pgit/command/run.rb', line 9 def initialize(app) @app = app end |
Instance Method Details
#execute! ⇒ Object
13 14 15 16 17 18 |
# File 'lib/pgit/command/run.rb', line 13 def execute! = "Command '#{search}' does not exist. Run 'pgit cmd show' to see the available custom commands." raise PGit::Error::User, unless command command.execute end |