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 +4 -4
- data/lib/mimas/commands/push.rb +10 -0
- data/lib/mimas/templates/config.rb.erb +7 -7
- data/lib/mimas/templates/puma.rb +1 -1
- data/lib/mimas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 465b5f5dab298e62003b3d43b417dcc13d2c6836cba3ade389fe487d3ee59c9d
|
|
4
|
+
data.tar.gz: 3bd799075d78069a206a2cafd8b4d4abc3f7b040aa737e42c864704eb041c1ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a0da3d7890be014ee7709a47a1ef8c9cba601b55e45fcf9d978f9787e560f4f4aab837f54483801dcc902ce8688d804e7a03484625d1149221a5475ddfbc1dc
|
|
7
|
+
data.tar.gz: 5d82db21fab21f4146480c509864360396679031b4ec191a43c37bde4d08c2ed8f84f9bbed492acb5a14d3aa984dc005464ca8f68141dfe8c79022bdf526652d
|
data/lib/mimas/commands/push.rb
CHANGED
|
@@ -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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
42
|
-
|
|
41
|
+
command "bundle exec #start server"
|
|
42
|
+
<% end -%>
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
data/lib/mimas/templates/puma.rb
CHANGED
data/lib/mimas/version.rb
CHANGED