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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 863a43eee6bdada683663a2c355cfbce7454f35c
4
- data.tar.gz: 6ae12c814cb81e2bfb828bbdcc37d3a7c2221057
3
+ metadata.gz: 787af9be6ac246852a3fe3eb1442b5761405c710
4
+ data.tar.gz: 8e7ad4fdab9353cdfb949f37c434ad27c85962c8
5
5
  SHA512:
6
- metadata.gz: 2143e861cf48529506354d3698dd82b919f8af66b0ff6b9320a94a81d3130c4778bf0f0d19778670d193bbbd96257365c0376a38b25ae24a5e03626abaa4e577
7
- data.tar.gz: 913ff4e356dc08fdf09b842ad068d929604b5767b942e8da5aad94c4b1ce3e51ecd058d708b4c6e8eaeb0b3b17bc2f6c4f05bd13fed5c471ffa9abb32b4007b0
6
+ metadata.gz: aed10d084a54338acea02b8814eda2d3f66a11f697b28de367ea401a62e5c61a8f2f691507af0abd7d1b9105744500797aa5bbcbf5581be0156d72e51cc2c717
7
+ data.tar.gz: 0d1a0a14bfdbf99210825689beee67beb95f11f0f0d9358b741d4a5bf346edd9d155b0aa1f6c8ec029eddc0b6480646c5c006d8eec71367c37d3920bf260158f
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
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,
@@ -6,4 +6,3 @@ description 'Installs/Configures <%= service_name %>'
6
6
  long_description 'Installs/Configures <%= service_name %>'
7
7
  version IO.read(File.join(File.dirname(__FILE__), 'VERSION')) rescue '0.0.1'
8
8
 
9
- depends 'common'
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe process("sshd") do
4
+ it { should be_running }
5
+ it "is listening on port 22" do
6
+ expect(port(22)).to be_listening
7
+ end
8
+ end
9
+
@@ -1,11 +1,3 @@
1
1
  require 'serverspec'
2
- require 'pathname'
3
2
 
4
- include Serverspec::Helper::Exec
5
- include Serverspec::Helper::DetectOS
6
-
7
- RSpec.configure do |c|
8
- c.before :all do
9
- c.os = backend(Serverspec::Commands::Base).check_os
10
- end
11
- end
3
+ set :backend, :exec
@@ -1,3 +1,3 @@
1
1
  module Awskit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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/common_spec.rb
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
@@ -1,6 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe command('java -version') do
4
- its(:exit_status) { should eq(0) }
5
- its(:stdout) { should match(/.*1.8.*/) }
6
- end