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: package.rb
    path of file: ./repos/itamae/lib/itamae/resource
    
    the code of the file until where you have to start completion: module Itamae
  module Resource
    class Package < Base
      define_attribute :action, default: :in
    
      def action_install(action_options)
        return if !attributes.version && current.installed

        unless run_specinfra(:check_package_is_installed, attributes.name, attributes.version)
          run_specinfra(:install_package, attributes.name, attributes.version, attributes.options)
          updated!
        end