<commit_before>class Subspace::Commands::Ssh < Subspace::Commands::Base
  def initialize(args, options)
    @host = args.first
    run
  end

  def run
    exec "ssh ubuntu@#{@host}"
    #ansible_command "ansible", @host, '-a', "/bin/bash -l"
  end

  private

  def update_ansible_cfg
    template "ansible.cfg"
  end

end<commit_msg>ssh works<commit_after>require 'yaml'
class Subspace::Commands::Ssh < Subspace::Commands::Base
  def initialize(args, options)
    @host = args.first
    run
  end

  def run
    host_vars = YAML.load_file("config/provision/host_vars/#{@host}")
    cmd = "ssh #{host_vars["ansible_ssh_user"]}@#{host_vars["ansible_ssh_host"]}"
    say cmd
    exec cmd
  end

  private

  def update_ansible_cfg
    template "ansible.cfg"
  end

end
{'fraction_non_alphanumeric': 0.12646675358539766, 'fraction_numerical': 0.0, 'mean_word_length': 3.740740740740741, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6691422', 'n_tokens_mistral': 284, 'n_tokens_neox': 275, 'n_words': 60}