s3_website 2.2.0 → 2.3.0

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: a0db818cde92ba72ae2bca269f676c18e63277ac
4
- data.tar.gz: 20315d8fde0ef16cad751cf104f45eea931612d0
3
+ metadata.gz: fd0667791c419c8754d9ba740fc56e9438ae927b
4
+ data.tar.gz: a796f3d0a85cadaa9cc00edfae933e4baeeb1420
5
5
  SHA512:
6
- metadata.gz: 0229a6d300c77da0ea0e01d151994c26fd7cd62fd84e64fdf6c58e7b1ee087b5a6f29bd8667ec7432efd3a6dfbf058facfb07aa90e764840be78c32aeb2c4fef
7
- data.tar.gz: 03fd97df2738bd7a8e0b09f37e759d7de45b3075932bf828cdda04eae2667eb7f547b8563a4bb2b80e2d4c8a1acbbd36c892bc0fd4b9f8522dbd013febcc0abe
6
+ metadata.gz: f40001a4bf797894f04698253abc3e56e4c581e52ac0c7947fb103d3b2cb2cbf4d8dd246160a088723fdef8ea1c4b1836cba1dcd6ad5758d79d1878683a91404
7
+ data.tar.gz: 5786070315d3b805e9ebbe58aa3816aa5e31fab00f33ae31a814602c6751e6e4027331614cf083982d738b0251997a2a8f10e00b8d93068bfa28901c622964b9
data/bin/s3_website CHANGED
@@ -23,6 +23,16 @@ class Cfg < Thor
23
23
  exit 1
24
24
  end
25
25
 
26
+ option(
27
+ :headless,
28
+ :type => :boolean,
29
+ :desc => "Apply the settings headlessly. See --autocreate-cloudfront-distribution for more info."
30
+ )
31
+ option(
32
+ 'autocreate-cloudfront-dist',
33
+ :type => :boolean,
34
+ :desc => "When used with --headless, automatically create a CloudFront distribution for your S3 website."
35
+ )
26
36
  desc 'apply', 'Apply the configuration on the AWS services'
27
37
  long_desc <<-LONGDESC
28
38
  `s3_website cfg apply` will apply the configuration the S3 bucket.
@@ -37,7 +47,9 @@ class Cfg < Thor
37
47
  require 'configure-s3-website'
38
48
  config_source = ConfigureS3Website::FileConfigSource.new 's3_website.yml'
39
49
  ConfigureS3Website::Runner.run({
40
- :config_source => config_source
50
+ :config_source => config_source,
51
+ :headless => options[:headless],
52
+ 'autocreate-cloudfront-dist' => options['autocreate-cloudfront-dist']
41
53
  })
42
54
  rescue Exception => error
43
55
  puts "#{error.message} (#{error.class})"
data/changelog.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 2.3.0
6
+
7
+ * The command `s3_website cfg apply` now supports `--headless` and
8
+ `--autocreate-cloudfront-dist`
9
+
5
10
  ## 2.2.0
6
11
 
7
12
  * Specify the location of the website in the *s3_website.yml* file
@@ -1,3 +1,3 @@
1
1
  module S3Website
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0'
3
3
  end
data/s3_website.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.default_executable = %q{s3_website}
19
19
 
20
20
  s.add_dependency 'thor', '= 0.18.1'
21
- s.add_dependency 'configure-s3-website', '= 1.5.5'
21
+ s.add_dependency 'configure-s3-website', '= 1.6.0'
22
22
  s.add_dependency 'colored', '1.2'
23
23
  s.add_dependency 'dotenv', '~> 0.11.1'
24
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.5
33
+ version: 1.6.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: 1.5.5
40
+ version: 1.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colored
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: dotenv
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.11.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.11.1
69
69
  - !ruby/object:Gem::Dependency
@@ -103,8 +103,8 @@ executables:
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - ".gitignore"
107
- - ".travis.yml"
106
+ - .gitignore
107
+ - .travis.yml
108
108
  - Gemfile
109
109
  - LICENSE
110
110
  - README.md
@@ -153,17 +153,17 @@ require_paths:
153
153
  - lib
154
154
  required_ruby_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - ">="
156
+ - - '>='
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ">="
161
+ - - '>='
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.2.2
166
+ rubygems_version: 2.2.1
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Manage your S3 website