class Opsicle::Errors::DeployFailed

Public Class Methods

new(command=nil) click to toggle source
Calls superclass method
# File lib/opsicle/errors.rb, line 7
def initialize(command=nil)
  @command = command
  super("#{command_string} failed!")
end

Public Instance Methods

command_string() click to toggle source
# File lib/opsicle/errors.rb, line 12
def command_string
  command_string = @command ? @command[:name] : 'deploy'

  if command_string == 'execute_recipes' && @command[:args]["recipes"]
    command_string += " (running [#{@command[:args]["recipes"].join(', ')}])"
  end

  command_string
end