You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: install_command.rb
    path of file: ./repos/kontena/cli/lib/kontena/cli/stacks
    
    the code of the file until where you have to start completion: require_relative 'common'
require_relative 'yaml/stack_file_loader'

m
    
    def execute
      install_dependencies unless skip_dependencies?

      set_env_variables(stack_name, current_grid)

      stack # runs validations

      kontena_requirement = stack.dig('metadata', 'required_kontena_version')
      unless kontena_requirement.nil?
        master_version = Gem::Version.new(client.server_version)
        unless Gem::Requirement.new(kontena_requirement).satisfied_by?(master_version)
          puts "#{pastel.red("Warning: ")} Stack requires kontena version #{kontena_requirement} but Master version is #{master_version}"
          confirm("Are you sure? You can skip this prompt by running this command with --force option") unless forced?
        end