Class: MGit::System::GitCommand
- Inherits:
-
SystemCommand
- Object
- SystemCommand
- MGit::System::GitCommand
- Defined in:
- lib/mgit/system.rb
Instance Attribute Summary
Attributes inherited from SystemCommand
Instance Method Summary collapse
-
#initialize(cmd, opts) ⇒ GitCommand
constructor
A new instance of GitCommand.
Methods inherited from SystemCommand
#=~, #default_options, #extract_options, #success?
Methods included from Output
#perror, #pinfo, #psystem, #ptable, #pwarn
Constructor Details
#initialize(cmd, opts) ⇒ GitCommand
Returns a new instance of GitCommand.
53 54 55 56 57 |
# File 'lib/mgit/system.rb', line 53 def initialize(cmd, opts) super("git #{cmd}", opts) rescue SystemCommandError => e raise GitError, e.error end |