Skip to content
No description or website provided.
Ruby
Find file
Failed to load latest commit information.
bin
features
lib (overdue) version bump, both to address version confusion... and beca…
spec
.gitignore
.rspec
.travis.yml
Gemfile
Guardfile
LICENSE
README.md
Rakefile
iv-cli.gemspec

README.md

IV::CLI

Build status

Infrastructure Visualization. This is the command line interface and core classes for iv, a gem for visualizing cloud infrastructure.

Installation

Add this line to your application's Gemfile:

gem 'iv-cli'

And then execute:

$ bundle

Or install it yourself as:

$ gem install iv-cli

Then initialize the config files

$ gem init
$ vim ~/.iv/config

Usage

IV is built around a core executable, iv, which gives access to multiple subcommands.

init

Creates config files in the user's home directory.

$ iv init
Generating config directory in ~/.iv
Generating config file ~/.iv/config.yml

Options:

Usage: iv init [options]
    -f, --force                      Overwrite pre-existing config files
    -h, --help                       Show this help message

nodes

Lists out all nodes in all of your environments

$ iv nodes
+        status +                  name +      ip +    os +   org +
| 2 minutes ago | node.name.domain.com  | 0.0.0.0 | my os | demo  |
| 1 minute ago  | node2.name.domain.com | 0.0.0.0 | my os | stage |

$ iv nodes -f csv
1 minutes ago,node.name.domain.com,0.0.0.0,os type,demo
1 hour ago,node2.domain.com,0.0.0.0,os type,prod

Please note that all nodes should have a NAME and an FQDN registered with your chef server in order for the formatting to work correctly.

Options:

Usage: iv nodes [options]
    -f, --formatter          Output formatter. Defaults to 'table'

Formatters:

  • table - Outputs headers as well as pipe-delimited rows
  • csv - Outputs rows as comma-delimited text

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.