lib/kontena/cli/apps/common.rb in kontena-cli-0.15.4 vs lib/kontena/cli/apps/common.rb in kontena-cli-0.15.5.rc1
- old
+ new
@@ -60,15 +60,10 @@
@service_prefix ||= project_name || project_name_from_yaml(filename) || current_dir
end
def project_name_from_yaml(file)
reader = YAML::Reader.new(file, true)
- outcome = reader.execute
- if outcome[:version].to_i == 2
- outcome[:name]
- else
- nil
- end
+ reader.stack_name
end
# @return [String]
def token
@token ||= require_token