<commit_before># InstanceSelector

A simple interface for querying DNS names cloud hosting environments based on searching cloud meta data.  It also provides a liberal Capistrano interface for identifying deploy targets.

Currently supporting:

- AWS
  - ec2 instance filtering

## Installation

Add this line to your application's Gemfile:

    gem 'instance_selector'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install instance_selector

## Usage

By default, only running instances will be included in the results.  Overriding this restriction is in the TODO section.

### Standalone

    require 'instance_selector/connection'
    conn = InstanceSelector::Connection.new(:aws)
    instances = connection.instances(:tags => {"Environment" => "staging"})<commit_msg>doc fix, kudos to CraigWilliams<commit_after># InstanceSelector

A simple interface for querying DNS names cloud hosting environments based on searching cloud meta data.  It also provides a liberal Capistrano interface for identifying deploy targets.

Currently supporting:

- AWS
  - ec2 instance filtering

## Installation

Add this line to your application's Gemfile:

    gem 'instance_selector'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install instance_selector

## Usage

By default, only running instances will be included in the results.  Overriding this restriction is in the TODO section.

### Standalone

    require 'instance_selector/connection'
    conn = InstanceSelector::Connection.factory(:aws)
    instances = connection.instances(:tags => {"Environment" => "staging"})
{'fraction_non_alphanumeric': 0.06497524752475248, 'fraction_numerical': 0.0012376237623762376, 'mean_word_length': 4.408026755852843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2665671', 'n_tokens_mistral': 413, 'n_tokens_neox': 396, 'n_words': 175}