awskit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +5 -1
- data/lib/awskit/gen/cookbook/service.rb +10 -0
- data/lib/awskit/gen/cookbook/templates/metadata.rb.erb +0 -1
- data/lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/localhost/default_spec.rb +9 -0
- data/lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/spec_helper.rb +1 -9
- data/lib/awskit/version.rb +1 -1
- metadata +2 -2
- data/lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/localhost/common_spec.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 787af9be6ac246852a3fe3eb1442b5761405c710
|
4
|
+
data.tar.gz: 8e7ad4fdab9353cdfb949f37c434ad27c85962c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed10d084a54338acea02b8814eda2d3f66a11f697b28de367ea401a62e5c61a8f2f691507af0abd7d1b9105744500797aa5bbcbf5581be0156d72e51cc2c717
|
7
|
+
data.tar.gz: 0d1a0a14bfdbf99210825689beee67beb95f11f0f0d9358b741d4a5bf346edd9d155b0aa1f6c8ec029eddc0b6480646c5c006d8eec71367c37d3920bf260158f
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# awskit
|
2
2
|
|
3
|
-
DevOps toolkit generator for Amazon Web Services.
|
3
|
+
DevOps toolkit and Chef cookbook generator for Amazon Web Services based on [StackIT](https://github.com/jeremyhahn/stackit).
|
4
4
|
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
./bin/awskit gen toolkit --name mytoolkit
|
8
|
+
./bin/awskit gen cookbook --name mycookbook
|
@@ -15,6 +15,7 @@ module Awskit::Gen::Cookbook
|
|
15
15
|
|
16
16
|
def gen
|
17
17
|
gen_dirs
|
18
|
+
gen_metadata_rb
|
18
19
|
gen_kitchen_yml
|
19
20
|
gen_vagrantfile
|
20
21
|
gen_readme
|
@@ -37,6 +38,15 @@ module Awskit::Gen::Cookbook
|
|
37
38
|
Dir.mkdir recipes unless File.exist?(recipes)
|
38
39
|
end
|
39
40
|
|
41
|
+
def gen_metadata_rb
|
42
|
+
Awskit::Gen::TemplateWriter.new(
|
43
|
+
:output_path => output_path,
|
44
|
+
:template => template_path('metadata.rb'),
|
45
|
+
:binding => kitchen_template_binding,
|
46
|
+
:filename => 'metadata.rb'
|
47
|
+
).write!
|
48
|
+
end
|
49
|
+
|
40
50
|
def gen_kitchen_yml
|
41
51
|
Awskit::Gen::TemplateWriter.new(
|
42
52
|
:output_path => output_path,
|
data/lib/awskit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awskit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hahn
|
@@ -102,7 +102,7 @@ files:
|
|
102
102
|
- lib/awskit/gen/cookbook/templates/recipes/setup.rb
|
103
103
|
- lib/awskit/gen/cookbook/templates/recipes/shutdown.rb
|
104
104
|
- lib/awskit/gen/cookbook/templates/recipes/undeploy.rb
|
105
|
-
- lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/localhost/
|
105
|
+
- lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/localhost/default_spec.rb
|
106
106
|
- lib/awskit/gen/cookbook/templates/test/integration/default/serverspec/spec_helper.rb
|
107
107
|
- lib/awskit/gen/cookbook/vagrantfile_template_binding.rb
|
108
108
|
- lib/awskit/gen/template_writer.rb
|