Module: RelevanceRails::GeneratorOverrides
- Included in:
- ProvisionConfigGenerator
- Defined in:
- lib/relevance_rails/generator_overrides.rb
Instance Method Summary collapse
Instance Method Details
#git(commands = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/relevance_rails/generator_overrides.rb', line 3 def git(commands={}) super if !$?.success? command_string = commands.is_a?(Symbol) ? "git #{commands}" : commands.map {|cmd, | "git #{cmd} #{}" }.join("; ") msg = "Generator failed with command(s): #{command_string}" abort "\n#{'*' * msg.size}\n#{msg}\n#{'*' * msg.size}" end end |