Class: MGit::System::GitCommand

Inherits:
SystemCommand show all
Defined in:
lib/mgit/system.rb

Instance Attribute Summary

Attributes inherited from SystemCommand

#stderr, #stdout

Instance Method Summary collapse

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