Class: Tomo::Plugin::Honeybadger::Tasks

Inherits:
TaskLibrary
  • Object
show all
Defined in:
lib/tomo/plugin/honeybadger/tasks.rb

Instance Method Summary collapse

Instance Method Details

#deployObject

Update Honeybadger about the new deployment



4
5
6
7
8
9
10
11
# File 'lib/tomo/plugin/honeybadger/tasks.rb', line 4

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