Class: Honeybadger::CLI::Deploy Private
- Inherits:
-
Object
- Object
- Honeybadger::CLI::Deploy
- Extended by:
- Forwardable
- Includes:
- Helpers::BackendCmd
- Defined in:
- lib/honeybadger/cli/deploy.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(options, args, config) ⇒ Deploy
constructor
private
A new instance of Deploy.
- #run ⇒ Object private
Methods included from Helpers::BackendCmd
Constructor Details
#initialize(options, args, config) ⇒ Deploy
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Deploy.
12 13 14 15 16 17 |
# File 'lib/honeybadger/cli/deploy.rb', line 12 def initialize(, args, config) @options = @args = args @config = config @shell = ::Thor::Base.shell.new end |
Instance Method Details
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/honeybadger/cli/deploy.rb', line 19 def run payload = { environment: config.get(:env), revision: ['revision'], repository: ['repository'], local_username: ['user'] } response = config.backend.notify(:deploys, payload) if response.success? say("Deploy notification complete.", :green) else say((response), :red) exit(1) end end |