Sha256: 87df7cd0c4e276818188fe29312a72f847753452f0dacb78f5900b9d4dc89250

Contents?: true

Size: 539 Bytes

Versions: 91

Compression:

Stored size: 539 Bytes

Contents

Rails::Generator::Commands::Create.class_eval do
  def rake(cmd, opts = {})
    logger.rake "rake #{cmd}"
    unless system("rake #{cmd}")
      logger.rake "#{cmd} failed. Rolling back"
      command(:destroy).invoke!
    end
  end
end

Rails::Generator::Commands::Destroy.class_eval do
  def rake(cmd, opts = {})
    unless opts[:generate_only]
      logger.rake "rake #{cmd}"
      system "rake #{cmd}"
    end
  end
end

Rails::Generator::Commands::List.class_eval do
  def rake(cmd, opts = {})
    logger.rake "rake #{cmd}"
  end
end

Version data entries

91 entries across 91 versions & 5 rubygems

Version Path
honeybadger-1.11.0.beta4 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.11.0.beta3 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.11.0.beta2 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.10.2 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.11.0.beta1 generators/honeybadger/lib/rake_commands.rb
airbrake-3.1.15 generators/airbrake/lib/rake_commands.rb
honeybadger-1.10.1 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.10.0 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.5 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.10.0.beta2 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.10.0.beta1 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.4 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.3 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.2 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.1 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.0 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.0.beta3 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.0.beta2 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.9.0.beta1 generators/honeybadger/lib/rake_commands.rb
honeybadger-1.8.1 generators/honeybadger/lib/rake_commands.rb