renuo-cli 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 +4 -4
- data/lib/renuo/cli/app/create_aws_project.rb +1 -1
- data/lib/renuo/cli/app/services/cloudfront_config_service.rb +80 -78
- data/lib/renuo/cli/version.rb +1 -1
- data/renuo-cli.gemspec +11 -11
- metadata +41 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed7c101c3bf20e4393c68e160a0e655f75e76e5
|
4
|
+
data.tar.gz: 57c77bf81bb5a5ea8982df1e1f5c1ed6f77d90bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54c328f982d751e28b27c83269eaa45fb6651480eea8dfc7ea9bd1a504bbb449e50be128efbcfbc13536e361a3ff90a6a2f16e94256b75434290a7fc778bd9d
|
7
|
+
data.tar.gz: d8c4b7c5ac694bcafde1c66546b89b3ec73efc0bbd79f6384f9b35af6e0704a7e49a00efb27a7a1154c064c1c5bc3ff5bfdc9483b3e0242b84d913fbdbbf2e2f
|
@@ -126,7 +126,7 @@ class CreateAwsProject
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def aws_cloudfront_setup(profile, bucket, branch, redmine_project)
|
129
|
-
tags = [{ "redmine_project": redmine_project }]
|
129
|
+
tags = [{ "Key": 'redmine_project', "Value": redmine_project }]
|
130
130
|
cloudfront_config_string = CloudfrontConfigService.new(bucket, cloudfront_alias(branch), tags).to_s
|
131
131
|
|
132
132
|
<<-CLOUDFRONT_COMMANDS
|
@@ -14,99 +14,101 @@ class CloudfrontConfigService
|
|
14
14
|
# rubocop:disable Metrics/MethodLength
|
15
15
|
def bucket_config
|
16
16
|
{
|
17
|
-
"
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
17
|
+
"DistributionConfigWithTags": {
|
18
|
+
"DistributionConfig": {
|
19
|
+
"CallerReference": unique_caller_reference,
|
20
|
+
"Aliases": bucket_aliases,
|
21
|
+
"Origins": {
|
22
|
+
"Quantity": 1,
|
23
|
+
"Items": [
|
24
|
+
{
|
25
|
+
"Id": "S3-#{@bucket}",
|
26
|
+
"DomainName": "#{@bucket}.s3.amazonaws.com",
|
27
|
+
"OriginPath": '',
|
28
|
+
"CustomHeaders": {
|
29
|
+
"Quantity": 0
|
30
|
+
},
|
31
|
+
"S3OriginConfig": {
|
32
|
+
"OriginAccessIdentity": ''
|
33
|
+
}
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},
|
37
|
+
"DefaultCacheBehavior": {
|
38
|
+
"TargetOriginId": "S3-#{@bucket}",
|
39
|
+
"ForwardedValues": {
|
40
|
+
"QueryString": false,
|
41
|
+
"Cookies": {
|
42
|
+
"Forward": 'none'
|
43
|
+
},
|
44
|
+
"Headers": {
|
28
45
|
"Quantity": 0
|
29
46
|
},
|
30
|
-
"
|
31
|
-
"
|
47
|
+
"QueryStringCacheKeys": {
|
48
|
+
"Quantity": 0
|
32
49
|
}
|
33
|
-
}
|
34
|
-
]
|
35
|
-
},
|
36
|
-
"DefaultCacheBehavior": {
|
37
|
-
"TargetOriginId": "S3-#{@bucket}",
|
38
|
-
"ForwardedValues": {
|
39
|
-
"QueryString": false,
|
40
|
-
"Cookies": {
|
41
|
-
"Forward": 'none'
|
42
50
|
},
|
43
|
-
"
|
51
|
+
"TrustedSigners": {
|
52
|
+
"Enabled": false,
|
44
53
|
"Quantity": 0
|
45
54
|
},
|
46
|
-
"
|
47
|
-
|
48
|
-
|
49
|
-
},
|
50
|
-
"TrustedSigners": {
|
51
|
-
"Enabled": false,
|
52
|
-
"Quantity": 0
|
53
|
-
},
|
54
|
-
"ViewerProtocolPolicy": 'redirect-to-https',
|
55
|
-
"MinTTL": 0,
|
56
|
-
"AllowedMethods": {
|
57
|
-
"Quantity": 2,
|
58
|
-
"Items": %w[
|
59
|
-
HEAD
|
60
|
-
GET
|
61
|
-
],
|
62
|
-
"CachedMethods": {
|
55
|
+
"ViewerProtocolPolicy": 'redirect-to-https',
|
56
|
+
"MinTTL": 0,
|
57
|
+
"AllowedMethods": {
|
63
58
|
"Quantity": 2,
|
64
59
|
"Items": %w[
|
65
60
|
HEAD
|
66
61
|
GET
|
67
|
-
]
|
62
|
+
],
|
63
|
+
"CachedMethods": {
|
64
|
+
"Quantity": 2,
|
65
|
+
"Items": %w[
|
66
|
+
HEAD
|
67
|
+
GET
|
68
|
+
]
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"SmoothStreaming": false,
|
72
|
+
"DefaultTTL": 86_400,
|
73
|
+
"MaxTTL": 31_536_000,
|
74
|
+
"Compress": true,
|
75
|
+
"LambdaFunctionAssociations": {
|
76
|
+
"Quantity": 0
|
68
77
|
}
|
69
78
|
},
|
70
|
-
"
|
71
|
-
"DefaultTTL": 86_400,
|
72
|
-
"MaxTTL": 31_536_000,
|
73
|
-
"Compress": true,
|
74
|
-
"LambdaFunctionAssociations": {
|
79
|
+
"CacheBehaviors": {
|
75
80
|
"Quantity": 0
|
76
|
-
}
|
77
|
-
|
78
|
-
"CacheBehaviors": {
|
79
|
-
"Quantity": 0
|
80
|
-
},
|
81
|
-
"CustomErrorResponses": {
|
82
|
-
"Quantity": 0
|
83
|
-
},
|
84
|
-
"Comment": '',
|
85
|
-
"Logging": {
|
86
|
-
"Enabled": false,
|
87
|
-
"IncludeCookies": false,
|
88
|
-
"Bucket": '',
|
89
|
-
"Prefix": ''
|
90
|
-
},
|
91
|
-
"PriceClass": 'PriceClass_100',
|
92
|
-
"Enabled": true,
|
93
|
-
"ViewerCertificate": {
|
94
|
-
"CloudFrontDefaultCertificate": true,
|
95
|
-
"MinimumProtocolVersion": 'TLSv1.2_2018',
|
96
|
-
"CertificateSource": 'cloudfront'
|
97
|
-
},
|
98
|
-
"Restrictions": {
|
99
|
-
"GeoRestriction": {
|
100
|
-
"RestrictionType": 'none',
|
81
|
+
},
|
82
|
+
"CustomErrorResponses": {
|
101
83
|
"Quantity": 0
|
102
|
-
}
|
84
|
+
},
|
85
|
+
"Comment": '',
|
86
|
+
"Logging": {
|
87
|
+
"Enabled": false,
|
88
|
+
"IncludeCookies": false,
|
89
|
+
"Bucket": '',
|
90
|
+
"Prefix": ''
|
91
|
+
},
|
92
|
+
"PriceClass": 'PriceClass_100',
|
93
|
+
"Enabled": true,
|
94
|
+
"ViewerCertificate": {
|
95
|
+
"CloudFrontDefaultCertificate": true,
|
96
|
+
"MinimumProtocolVersion": 'TLSv1.2_2018',
|
97
|
+
"CertificateSource": 'cloudfront'
|
98
|
+
},
|
99
|
+
"Restrictions": {
|
100
|
+
"GeoRestriction": {
|
101
|
+
"RestrictionType": 'none',
|
102
|
+
"Quantity": 0
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"WebACLId": '',
|
106
|
+
"HttpVersion": 'http2',
|
107
|
+
"IsIPV6Enabled": true
|
103
108
|
},
|
104
|
-
"
|
105
|
-
|
106
|
-
|
107
|
-
},
|
108
|
-
"Tags": {
|
109
|
-
"Items": @tags
|
109
|
+
"Tags": {
|
110
|
+
"Items": @tags
|
111
|
+
}
|
110
112
|
}
|
111
113
|
}
|
112
114
|
end
|
data/lib/renuo/cli/version.rb
CHANGED
data/renuo-cli.gemspec
CHANGED
@@ -18,18 +18,18 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'colorize'
|
22
|
-
spec.add_dependency 'commander'
|
23
|
-
spec.add_dependency 'redcarpet'
|
21
|
+
spec.add_dependency 'colorize', '~> 0'
|
22
|
+
spec.add_dependency 'commander', '~> 4.0'
|
23
|
+
spec.add_dependency 'redcarpet', '~> 3.0'
|
24
24
|
|
25
|
-
spec.add_development_dependency 'aruba'
|
26
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
27
|
-
spec.add_development_dependency 'coveralls'
|
28
|
-
spec.add_development_dependency 'cucumber'
|
29
|
-
spec.add_development_dependency 'mdl'
|
30
|
-
spec.add_development_dependency 'pry'
|
25
|
+
spec.add_development_dependency 'aruba', '~> 0.14.5'
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
27
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.9'
|
28
|
+
spec.add_development_dependency 'cucumber', '~> 3.1'
|
29
|
+
spec.add_development_dependency 'mdl', '~> 0.4.0'
|
30
|
+
spec.add_development_dependency 'pry', '~> 0.11.3'
|
31
31
|
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
-
spec.add_development_dependency 'rspec'
|
33
|
-
spec.add_development_dependency 'rubocop', '0.55'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
33
|
+
spec.add_development_dependency 'rubocop', '0.55.0'
|
34
34
|
spec.add_development_dependency 'simplecov', '0.10.0' # TODO: update and fix coverage
|
35
35
|
end
|
metadata
CHANGED
@@ -1,141 +1,141 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renuo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renuo AG
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: commander
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '4.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '4.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redcarpet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '3.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aruba
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.14.5
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.14.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.16'
|
76
76
|
type: :development
|
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: '1.
|
82
|
+
version: '1.16'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: coveralls
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.8.9
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.8.9
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: cucumber
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.1'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: mdl
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.4.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.4.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: pry
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.11.3
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.11.3
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,30 +154,30 @@ dependencies:
|
|
154
154
|
name: rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '3.5'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '3.5'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rubocop
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 0.55.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 0.55.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
version: '0'
|
260
260
|
requirements: []
|
261
261
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.
|
262
|
+
rubygems_version: 2.6.12
|
263
263
|
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: The Renuo CLI automates some commonly used workflows by providing a command
|