mimas 0.8.2 → 0.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07ce3491c9d74a20957021ca25030ffcd9756cc5776573e5015c55f43373e828
4
- data.tar.gz: 487db1186cd077ff7b15e28c05fa0e3aed445b1f03e51e7083ab6a01b73df002
3
+ metadata.gz: a7a87a0bc4e5c7cbf3ec90a14eca8767594ae0ef7897fcd69dbee5267d07b3bd
4
+ data.tar.gz: 77fa055ae4d4ab8834d72177f6e2e1c2b0942d649576c5022ef630dbd4c8e6a8
5
5
  SHA512:
6
- metadata.gz: a8df0db3820ed8da319491f7886aeb65ae24dad766f49863872b4be08b869cb1a72a5fc224d9db6acd0f48772e0385600dc6208977c39f92f06b526ea37692cd
7
- data.tar.gz: 9895fbf0b0882c7594e34ab11a16cb2d14c9bf0f073b77a062e407b2fc32a740d38d220f6a46400b264a63bd0ca291e9de929bacf23a0b86f7159cf168545778
6
+ metadata.gz: 49426e2b9761425e404d00fa1ac4aba1eb5379c12c17896efb8c691760751b8e7130ec33809c7d29ceaf32c588a04e461458dc36c1991f928f6ab6d85be1dec3
7
+ data.tar.gz: f70ded0541067742d694c869e4abc7973a36b48fc27c779b5484ef7c55bc4d339c2f74af09f96dab8c8bc7162158bf67c7b4c094d5859c313d8d22f2e46abd88
@@ -41,6 +41,10 @@ sudo cat <<STRING >> /home/$DEPLOY_USER/http/caddy.global
41
41
  protocols h1 h2
42
42
  }
43
43
  }
44
+
45
+ :80 {
46
+ abort
47
+ }
44
48
  STRING
45
49
 
46
50
  sudo cat <<STRING >> /home/$DEPLOY_USER/http/Caddyfile
@@ -5,7 +5,7 @@ module Mimas
5
5
  if self.ruby_app?
6
6
  Archiver.new(output_file: filename, files: files.call).package
7
7
  else
8
- Archiver.new(root: root_dir, output_file: filename, archive_root: "root", glob: glob, files: files).package
8
+ Archiver.new(root: root_dir, output_file: filename, archive_root: "root", glob: glob, files: files.call).package
9
9
  end
10
10
  end
11
11
  end
data/lib/mimas/site.rb CHANGED
@@ -30,7 +30,7 @@ module Mimas
30
30
 
31
31
  # Placeholder, will be overwritten by the config file if defined
32
32
  def files
33
- nil
33
+ ->() {}
34
34
  end
35
35
 
36
36
  def validate!
@@ -39,7 +39,7 @@ module Mimas
39
39
 
40
40
  if ruby_app?
41
41
  raise Config::InvalidConfiguration.new("`site` requires a `files` directive") \
42
- unless self.files != nil
42
+ unless self.files.call != nil
43
43
 
44
44
  services.values.each do |service|
45
45
  raise Config::InvalidConfiguration.new("#{service[:name]} service requires a `command` directive") \
@@ -50,7 +50,7 @@ module Mimas
50
50
  unless self.respond_to?(:root_dir)
51
51
 
52
52
  raise Config::InvalidConfiguration.new("`site` requires a `files` or `glob` directive") \
53
- unless self.glob != nil || self.files != nil
53
+ unless self.glob != nil || self.files.call != nil
54
54
  end
55
55
 
56
56
  true
data/lib/mimas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mimas
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mimas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayush Newatia
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 4.0.16
177
+ rubygems_version: 4.0.23
178
178
  specification_version: 4
179
179
  summary: Deploy Ruby apps to a single server using an omakase setup
180
180
  test_files: []