mimas 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bff9e2b2cc427f8ebf816f67196d59555ac655caf6567125e0470f95eac8f917
4
- data.tar.gz: 9626638c071cb4e421b4a83a4ffbe925b82839de11eedf8e0f8fad44535c501a
3
+ metadata.gz: 465b5f5dab298e62003b3d43b417dcc13d2c6836cba3ade389fe487d3ee59c9d
4
+ data.tar.gz: 3bd799075d78069a206a2cafd8b4d4abc3f7b040aa737e42c864704eb041c1ff
5
5
  SHA512:
6
- metadata.gz: d9e3063a17af40b512bd63e157c52e79814e3b6293be0ec21076f11ca747ad17f0ec0fa7d6787f1a942a16aaf26e189b37701cb00a7c07db386bf1735cd01295
7
- data.tar.gz: 4f734fd9de7fd3004f9dc22b84eca996e3a6d81aecce96c3f6668fbc73cfca6281f3bceab6e2cd7c0be643d63134cbff48fcd0df8c453c50c8e52468ff566fce
6
+ metadata.gz: 4a0da3d7890be014ee7709a47a1ef8c9cba601b55e45fcf9d978f9787e560f4f4aab837f54483801dcc902ce8688d804e7a03484625d1149221a5475ddfbc1dc
7
+ data.tar.gz: 5d82db21fab21f4146480c509864360396679031b4ec191a43c37bde4d08c2ed8f84f9bbed492acb5a14d3aa984dc005464ca8f68141dfe8c79022bdf526652d
@@ -16,6 +16,16 @@ module Mimas
16
16
  server = Config.current.servers[server_name.to_sym]
17
17
  site = Config.current.sites[site.to_sym]
18
18
 
19
+ working_copy = `git status --porcelain`
20
+ unless working_copy == ""
21
+ confirm = ask "You have modified files in your working copy, would you like to continue with deployment? (y|n)"
22
+
23
+ if confirm.downcase != "y"
24
+ say "Aborting delpoyment due to modified files"
25
+ return
26
+ end
27
+ end
28
+
19
29
  @hooks[:before_push].each { it.call }
20
30
 
21
31
  Deployment.new(site: site, server: server).deploy
@@ -32,14 +32,14 @@ site do
32
32
 
33
33
  services do
34
34
  web do
35
- <% if app_server == "puma" -%>
36
- start "bundle exec puma -C deploy/puma.rb"
37
- <% elsif app_server == "falcon" -%>
38
- start "bundle exec falcon host deploy/falcon.rb"
39
- <% else -%>
35
+ <% if app_server == "puma" -%>
36
+ command "bundle exec puma -C deploy/puma.rb"
37
+ <% elsif app_server == "falcon" -%>
38
+ command "bundle exec falcon host deploy/falcon.rb"
39
+ <% else -%>
40
40
  # TODO: Add your server's start command
41
- start "bundle exec #start server"
42
- <% end -%>
41
+ command "bundle exec #start server"
42
+ <% end -%>
43
43
  end
44
44
  end
45
45
  end
@@ -7,5 +7,5 @@
7
7
  # Mimas requires the `bind` directive as defined below to configure the reverse proxy
8
8
  # and perform health checks.
9
9
 
10
- bind "unix://#{ENV["MIMAS_UNIX_SOCKET"]
10
+ bind "unix://#{ENV["MIMAS_UNIX_SOCKET"]}"
11
11
 
data/lib/mimas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mimas
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayush Newatia