<commit_before>module VagrantPlugins
  module GuestIP
    class Command < Vagrant.plugin(2, :command)
      def self.synopsis
        'outputs IP address of a guest machine'
      end

      def execute
        with_target_vms(nil, {:single_target=>true}) do |machine|
          @env.ui.info(machine.guest.capability(:read_ip_address))
        end
      end
    end
  end
end
<commit_msg>send a service message inside a TeamCity build<commit_after>module VagrantPlugins
  module GuestIP
    class Command < Vagrant.plugin(2, :command)
      def self.synopsis
        'outputs IP address of a guest machine'
      end

      def execute
        with_target_vms(nil, {:single_target=>true}) do |machine|
          ip = machine.guest.capability(:read_ip_address)
          message = ENV['TEAMCITY_VERSION'] ? "##teamcity[setParameter name='env.VAGRANT_IP' value='#{ip}']" : ip
          @env.ui.info(message)
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.0021141649048625794, 'mean_word_length': 2.684824902723735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2918039', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 75}