sessel 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +26 -1
- data/lib/sessel/receipt_rule.rb +5 -1
- data/lib/sessel/receipt_rule_creator.rb +1 -1
- data/lib/sessel/version.rb +1 -1
- data/swaggerless.gemspec +13 -13
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f1d0f76c38b7cc9275e8b7d0f8e47f03f32dabc
|
4
|
+
data.tar.gz: af95a684f96708891f5f25f7950a459dd815921c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3124eead3dc025943ed669d0e5317d6eb98d371f9ce50aade0f77d4cee39abd2eb02b8f4f670a7fa37d62c66bcf4dd394f3eedd815a0235d7c4c7e0acc187907
|
7
|
+
data.tar.gz: d09bc2ab8f4666f55422548cf147bc77e44836b353e881556e88b8a36115347cf900ddc670b2f295cfc3bcdd89df97c0a0f4e58b91bf54f9bd10f6c87c45cee9
|
data/README.md
CHANGED
@@ -6,4 +6,29 @@ Sessel - an AWS SES configuration tool
|
|
6
6
|
|
7
7
|
The idea behind this gem is to privide a way to automate configuration of Simple Email Service in AWS, so that the complete solution that one builds in AWS could be stored in the repository and deployed automatically.
|
8
8
|
|
9
|
-
## Installation
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
In order to install the gem call
|
12
|
+
|
13
|
+
gem install sessel
|
14
|
+
|
15
|
+
Alternatively if you use bundle you can add an entry to the `Gemfile`
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
The first step is to create the sessel.yaml. Sessel offers commands that interatively ask you for all the required information.
|
20
|
+
|
21
|
+
sessel add receipt_rule <SOLUTION_NAME>
|
22
|
+
|
23
|
+
or
|
24
|
+
|
25
|
+
sessel add configuration_set <SOLUTION_NAME>
|
26
|
+
|
27
|
+
|
28
|
+
Following the instructions in both cases will result in relevant resources being created in your AWS account and `sessel.yaml` being updated.
|
29
|
+
In order to apply the settings again one can call
|
30
|
+
|
31
|
+
sessel apply
|
32
|
+
|
33
|
+
|
34
|
+
|
data/lib/sessel/receipt_rule.rb
CHANGED
@@ -2,12 +2,13 @@ module Sessel
|
|
2
2
|
|
3
3
|
class ReceiptRule
|
4
4
|
|
5
|
-
def initialize(region, email_addresses, s3_bucket, rule_name, rule_set_name)
|
5
|
+
def initialize(region, email_addresses, s3_bucket, rule_name, rule_set_name, object_key_prefix)
|
6
6
|
@email_addresses = email_addresses
|
7
7
|
@region = region
|
8
8
|
@s3_bucket = s3_bucket
|
9
9
|
@rule_name = rule_name
|
10
10
|
@rule_set_name = rule_set_name
|
11
|
+
@object_key_prefix = object_key_prefix
|
11
12
|
end
|
12
13
|
|
13
14
|
def email_addresses
|
@@ -30,6 +31,9 @@ module Sessel
|
|
30
31
|
return @rule_set_name
|
31
32
|
end
|
32
33
|
|
34
|
+
def object_key_prefix
|
35
|
+
return @object_key_prefix
|
36
|
+
end
|
33
37
|
end
|
34
38
|
|
35
39
|
end
|
data/lib/sessel/version.rb
CHANGED
data/swaggerless.gemspec
CHANGED
@@ -4,28 +4,28 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'sessel/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'sessel'
|
8
8
|
spec.version = Sessel::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Rafal Nowosielski']
|
10
|
+
spec.email = ['rafal@nowosielski.email']
|
11
11
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description = "When writing solutions in the cloud, it is often valuable to have all configuraiton in code.
|
14
|
-
spec.homepage =
|
12
|
+
spec.summary = 'The gem includes a tool to store SES configuration in a scriptable form'
|
13
|
+
spec.description = "When writing solutions in the cloud, it is often valuable to have all configuraiton in code. Since CloutFormation doesn't support SES, this gem provides a way to store this confiuration in a scriptable form"
|
14
|
+
spec.homepage = 'https://nowosielski.website'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
17
|
f.match(%r{^(test|spec|features)/})
|
18
18
|
end
|
19
|
-
spec.bindir =
|
19
|
+
spec.bindir = 'bin'
|
20
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
26
26
|
|
27
|
-
spec.add_runtime_dependency
|
28
|
-
spec.add_runtime_dependency
|
29
|
-
spec.add_runtime_dependency
|
27
|
+
spec.add_runtime_dependency 'aws-sdk', '~> 2.6'
|
28
|
+
spec.add_runtime_dependency 'thor', '~> 0.19.4'
|
29
|
+
spec.add_runtime_dependency 'highline', '2.0.0.pre.develop.6'
|
30
30
|
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sessel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafal Nowosielski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: thor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.19.4
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.19.4
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: highline
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.0.0.pre.develop.6
|
97
97
|
description: When writing solutions in the cloud, it is often valuable to have all
|
98
|
-
configuraiton in code.
|
98
|
+
configuraiton in code. Since CloutFormation doesn't support SES, this gem provides
|
99
99
|
a way to store this confiuration in a scriptable form
|
100
100
|
email:
|
101
101
|
- rafal@nowosielski.email
|