vagrant-awsinfo 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -3,3 +3,7 @@
3
3
 
4
4
  # 0.0.2
5
5
  * Added some more data to the output, such as instanceid
6
+
7
+ # 0.0.3
8
+
9
+ * Output is now JSON rather then a ruby hash
data/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # vagrant awshost plugin
1
+ # vagrant awsinfo plugin
2
2
 
3
3
  This plug in helps you get some metadata from an Vagrant machine provisioned with the AWS provider
4
4
 
5
- This is useful when you use want to find out the external IP of the instance you just provisioned
5
+ This is useful when you use want to find out the external IP, instanceID, or username of the instance you just provisioned
6
6
 
7
7
 
8
8
  ## Installing
9
9
 
10
- ```vagrant plugin install vagrant-awshost```
10
+ ```vagrant plugin install vagrant-awsinfo```
11
11
 
12
12
 
13
13
  ## Querying
14
14
 
15
- The `vagrant awshost` command is provided by this plugin.
15
+ The `vagrant awsinfo` command is provided by this plugin.
16
16
 
17
17
  Examples:
18
18
 
19
19
  ```
20
- % vagrant awshost
21
- {"host":"ec2-1-2-3-4.compute-1.amazonaws.com","port":22,"private_key_path":"/Users/jdyer/.ssh/example.pem","username":"root"}
20
+ % vagrant awsinfo
21
+ {:host=>"ec2-xxx-xxx-xxx-xxxx.compute-1.amazonaws.com", :ssh_port=>22, :username=>"root", :instance_id=>"i-3188a75e", :state=>"running"}
22
22
  ```
23
23
 
24
24
  ## Contributing
@@ -36,7 +36,7 @@ module VagrantAwsInfo
36
36
  instance_id: machine.id,
37
37
  state: machine.provider.state.short_description,
38
38
  }
39
- return r
39
+ return r.to_json
40
40
 
41
41
  else
42
42
  return "Sorry this plugin currently only supports the AWS provider"
@@ -1,3 +1,3 @@
1
1
  module VagrantAwsInfo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-awsinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-16 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: vagrant aws info querying plugin
15
15
  email: