README.md in aws-rikanjo-0.0.8 vs README.md in aws-rikanjo-0.0.9
- old
+ new
@@ -1,7 +1,6 @@
-# Aws::Rikanjo
-
+# Aws::Rikanjo [![Build Status](https://travis-ci.org/kenjiskywalker/aws-rikanjo.svg?branch=master)](https://travis-ci.org/kenjiskywalker/aws-rikanjo)
RI Cost Calc Tool( Only new price ).
## Installation
Add this line to your application's Gemfile:
@@ -21,24 +20,26 @@
example
```
require "aws/rikanjo"
-a = Aws::RiKanjoo.new(region = "ap-northeast-1", instance_type = "m3.large", ri_util = "medium")
+a = Aws::RiKanjoo::Base.new('ec2', 'ap-northeast-1', 'm3.xlarge', 'medium')
a.total_cost_year
-# "region" : ap-northeast-1
-# "instance_type" : m3.large
-# "ri_util" : medium
-# "discont percent (percent)" : 35.09
-# "ondemand hour price (doller)" : 0.203
-# "reserved hour price (doller)" : 0.086
-# "ondemand year price (doller)" : 1778.28
-# "reserved year price (doller)" : 1154.36
-# "reserved upfront (doller)" : 401
-# "sweet spot day (day)" : 142
-# "sweet spot date (date)" : 2014-09-19
-# "sweet spot price (doller)" : 696.15
+{
+ "sweet spot price (doller)": "269.08",
+ "sweet spot date (date)": "2015-02-17",
+ "sweet spot day (day)": "254",
+ "reserved upfront (doller)": "61",
+ "region": "us-east-1",
+ "instance_type": "m1.small",
+ "ri_util": "light",
+ "discont percent (percent)": "6.9",
+ "ondemand hour price (doller)": "0.044",
+ "reserved hour price (doller)": "0.034",
+ "ondemand year price (doller)": "385.44",
+ "reserved year price (doller)": "358.84"
+}
```
## CLI Usage
### EC2
@@ -49,10 +50,11 @@
$ rikanjo ec2 --help
Usage: rikanjo ec2/rds [options]
-r, --region=VALUE specify aws-region (us-east-1/us-west-1/us-west-2/eu-west-1/ap-southeast-1/ap-northeast-1/ap-southeast-2/sa-east-1)
-t, --instance_type=VALUE specify ec2-instance-type
-u, --ri_util=VALUE specify ri-util (light/medium/heavy)
+ -j, --output_json specify output_json flg
-h, --help
```
example:
@@ -69,9 +71,10 @@
Usage: rikanjo ec2/rds [options]
--multiaz enable multi-az
-r, --region=VALUE specify aws-region (us-east-1/us-west-1/us-west-2/eu-west-1/ap-southeast-1/ap-northeast-1/ap-southeast-2/sa-east-1)
-t, --instance_type=VALUE specify ec2-instance-type
-u, --ri_util=VALUE specify ri-util (light/medium/heavy)
+ -j, --output_json specify output_json flg
-h, --help
```
example: