# frozen_string_literal: true
module Travis
  module Yml
    module Schema
      module Def
        module Deploy
          # docs do not mention pages
          class Pages < Deploy
            register :pages

            def define
              map :strategy,           to: :str, default: 'git', values: %w(api git)
              map :token,              to: :secure, alias: :github_token
              map :deploy_key,         to: :str
              map :repo,               to: :str
              map :target_branch,      to: :str
              map :local_dir,          to: :str
              map :fqdn,               to: :str
              map :project_name,       to: :str
              map :email,              to: :str
              map :name,               to: :str
              map :url,                to: :str, alias: :github_url
              map :keep_history,       to: :bool
              map :verbose,            to: :bool
              map :allow_empty_commit, to: :bool
              map :commit_message,     to: :str
              map :committer_from_gh,  to: :bool
              map :deployment_file,    to: :bool
            end
          end
        end
      end
    end
  end
end
