uxxman/tomo-plugin-honeybadger

View on GitHub
lib/tomo/plugin/honeybadger/tasks.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Tomo::Plugin::Honeybadger
  class Tasks < Tomo::TaskLibrary
    # Update Honeybadger about the new deployment
    def deploy
      remote.chdir(paths.current) do
        deployer = `whoami`.strip
        revision = `git rev-parse HEAD`.strip

        remote.run("bundle", "exec", "honeybadger", "deploy", "-r", settings[:git_url], "-s", revision, "-u", deployer)
      end
    end
  end
end