applb 0.1.1 → 0.1.2

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: 4508ccd32aa1b56b1422e09c046ec767d945310b
4
- data.tar.gz: 4a2ffcb180fea41fbcf20920a8bfed0ac8cb97c3
3
+ metadata.gz: 9d36371dbd509e977ef9bbf031611a7c43b32fd0
4
+ data.tar.gz: 3904b19c4f6832b3f9da1e0956cf5ce5a811ade3
5
5
  SHA512:
6
- metadata.gz: e542e452d24550659a122d079cec6daf963833ffeca73fa78a86ca276ad66c0dffc8f376e3c3fab75001c2c8e7ce7cefae86bd4742fae9f1f8b9a33ca8d2d9d9
7
- data.tar.gz: 7446b0ccd336d2659e4ad4ba2fb0e1faf1d41eccc63658fa92feb08a1d8a9bcee8ed4d606e1fffd23761ea0fbb0b014d5e2611d5a3f5e82623dade4dcc0937d7
6
+ metadata.gz: 166ab04db9b8ab93c4da9b8e3b52bcf7d56cf80d4c9b7c366eca1ce6028aa7bbd30bcc1948f0df7e89ed110c94642df4dac4ab6117917ecbd82218e445f93d4b
7
+ data.tar.gz: afe0a6dee6c359a7a35ea5914bf9f6aafc6a60546986c8606c07e8e9c08534aee4310cf046567082191093f8b77ee0361d919b6abbe6839fe609b47aca544ca6
data/README.md CHANGED
@@ -205,12 +205,12 @@ end
205
205
 
206
206
  ## Use template
207
207
 
208
- ```
208
+ ```ruby
209
209
  template "target_groups" do
210
210
  target_groups do
211
211
  target_group "my-target-group" do
212
212
  protocol "HTTP"
213
- port context.port || 80 # use default 80 or override context value
213
+ port context.port || 80 # use default 80 or override with context value
214
214
  vpc_id "vpc-XXXXXXXX"
215
215
  health_check_interval_seconds 30
216
216
  health_check_path "/healthcheck"
@@ -16,7 +16,8 @@ module Applb
16
16
  private
17
17
 
18
18
  def output_alb(vpc_id, tags_by_arn, lbs_by_name)
19
- ERB.new(File.read('lib/applb/output_alb.erb'), nil, '-').result(binding)
19
+ path = Pathname.new(File.expand_path('../', __FILE__)).join('output_alb.erb')
20
+ ERB.new(path.read, nil, '-').result(binding)
20
21
  end
21
22
  end
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module Applb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-22 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk