IV::CLI
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 |
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.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request