aws-carb 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8091f519cc7a1feb9f06b8e7970b160e9fa18d8
4
- data.tar.gz: 3ec84346a2226990efd24aa108e5a8f346c42977
3
+ metadata.gz: 9530ee3620b1bc7a976efb50b8bfa152c0f42a0e
4
+ data.tar.gz: e983aab1493873a004ff5b01dfc7ca3d222121f7
5
5
  SHA512:
6
- metadata.gz: 4042bb7bdb921791fa89ff6c6c76da063b95a95dbf89c91df3c66ce4b3bb7f95cdcd58c69c6f475dfdc560d30f5439d42bc14a41873d84127998d51fcac10ab5
7
- data.tar.gz: 189636adab38df5f0412792e82e2173fbf861e8a76b49b2634719b7faad8c252c52887400c720b21efead5976afc2b5d220613df363d30368c752e8bd01a203e
6
+ metadata.gz: 09129e29ba115c46efef7cb4f4dad4ce63c0808712f6cd230e05cc6a54f8f020e231027c4a647cf9f468a0ae7fe93572b72e600b97cdc2a41cc505a387691056
7
+ data.tar.gz: 4f8d77b092014073128a9e23ef3e9e5f4cb63e357af090b02f8ac29b9abc3e984daa58f53c761e1950f29514efb876533fc3f7b0f640eea97ef9c1805744cee2
data/README.md CHANGED
@@ -28,4 +28,43 @@ aws create
28
28
  ```
29
29
 
30
30
 
31
+ ## Temporary Quickstart Docs..
32
+
33
+ Leaving this stuff here until proper docs have been written:
34
+
35
+ ```
36
+ # works on ruby > 1.9
37
+ gem install aws-carb
38
+
39
+ # install config and template directories
40
+ mkdir -p ~/.carb/{config,templates}
41
+
42
+ sudo updatedb
43
+
44
+ cp `locate gems/aws-carb-0.0.3/configs/config.yaml.example` ~/.carb/config/config.yaml
45
+ cp `locate gems/aws-carb-0.0.3/template/basic.cloud-config.erb` ~/.carb/templates/
46
+
47
+ # edit config.yaml - remember to specify an ssh key because without one your ec2 instance will be inaccessible! (copy your ssh key from id_rsa.pub as a string - not a file path)
48
+ vim ~/.carb/config/config.yaml
49
+
50
+ # examples:
51
+
52
+ # create a basic instance like this (or put 'image_id' into 'ec2' section of config.yaml):
53
+ carb create --image-id <ami id>
54
+
55
+ # create an instance but bootstrap it with the user-data cloudinit template and also get some route53 goodness going on because hostname is set
56
+ # run with verbose to see more interesting info
57
+ carb -v create --user-data-template ~/.carb/templates/basic.cloud-config.erb --common-variables "{ 'hostname' => 'asdasdasasdasdsa' }"
58
+
59
+ # list all the ec2 options:
60
+ carb help create
61
+
62
+ #
63
+ --block-device-mappings="{ :device_name => "/dev/sdc", :ebs => { :volume_size => "100G" } }"
64
+
65
+
66
+
67
+
68
+ ```
69
+
31
70
 
@@ -222,8 +222,8 @@ module AWSCarb
222
222
 
223
223
  block_device_help = "\n\n#{indent}Specifies how block devices are exposed to the instance. Each mapping\n#{indent}is made up of a virtualName and a deviceName.\n" + block_device_help.join.downcase
224
224
 
225
- option.on "--block-device-mappings=HASH", block_device_help do |key_name|
226
- cli_arguments.subcommand.ec2.key_name = key_name
225
+ option.on "--block-device-mappings=HASH", block_device_help do |mapping|
226
+ cli_arguments.subcommand.ec2.block_device_mappings = mapping
227
227
  end
228
228
 
229
229
  option.separator ""
@@ -1,3 +1,3 @@
1
1
  module AWSCarb
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-carb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson