lib/faastruby/cli/commands/function/update_context.rb in faastruby-0.5.12 vs lib/faastruby/cli/commands/function/update_context.rb in faastruby-0.5.13
- old
+ new
@@ -20,13 +20,13 @@
spinner = spin("Uploading context data for function '#{@function_name}' to workspace '#{@workspace_name}'...")
workspace = FaaStRuby::Workspace.new(name: @workspace_name)
function = FaaStRuby::Function.new(name: @function_name, workspace: workspace)
function.update(new_context: @options['data'])
if function.errors.any?
- spinner.stop('Failed :(')
+ spinner.error
FaaStRuby::CLI.error(function.errors)
end
- spinner.stop('Done!')
+ spinner.success
end
def self.help
"update-context WORKSPACE_NAME [ARGS]"
end