lib/uffizzi/cli/project/compose.rb in uffizzi-cli-2.1.2 vs lib/uffizzi/cli/project/compose.rb in uffizzi-cli-2.1.3

- old
+ new

@@ -3,11 +3,10 @@ require 'uffizzi' require 'uffizzi/auth_helper' require 'uffizzi/response_helper' require 'uffizzi/services/compose_file_service' require 'uffizzi/services/env_variables_service' -require 'uffizzi/services/command_service' module Uffizzi class Cli::Project::Compose < Thor include ApiClient @@ -27,11 +26,10 @@ end private def run(command) - return Uffizzi.ui.say('You are not logged in.') unless Uffizzi::AuthHelper.signed_in? - return Uffizzi.ui.say('This command needs project to be set in config file') unless CommandService.project_set?(options) + Uffizzi::AuthHelper.check_login(options[:project]) project_slug = options[:project].nil? ? ConfigFile.read_option(:project) : options[:project] file_path = options[:file] case command when 'set'