lib/faastruby/cli/commands/workspace/migrate.rb in faastruby-0.5.12 vs lib/faastruby/cli/commands/workspace/migrate.rb in faastruby-0.5.13

- old
+ new

@@ -68,14 +68,14 @@ spinner = spin("Migrating workspace '#{workspace_name}'...") api = API.new response = api.migrate_to_account(workspace_name: workspace_name, api_key: credentials['api_key'], api_secret: credentials['api_secret']) if response.code > 299 @failed << workspace_name - spinner.stop(" Failed :(".red) + spinner.error return false end @migrated << workspace_name - spinner.stop(" Done!".green) + spinner.success return true end def self.help "migrate-workspaces"