fantasia-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/fantasia/cli.rb +8 -5
- data/lib/fantasia/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: 86be248a03a4f8a603af5e2ee1e5ee766ce73f38698d02599ba1d2dcb1698b2b
|
4
|
+
data.tar.gz: c2696b9678d511d3aa45f2250f06ea0d5d822730bdfcc895dcea59c8ab989384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd76bab37cd0b7b58192c3993ac61c9d6a7667d940d62b6108c2a8b9a90ac8819102d3bc6f5fee89ff3ebf63ed7be558e34de8942249b5336f20db4df5bb9863
|
7
|
+
data.tar.gz: cc015fd2fbca40f3584205373467dbba8f951cacdb5d67123dcfabe5a9dda3e8c93693947d18ec3894bba5635bf362ed4901aca456e23eadd62d6df41df56ea1
|
data/lib/fantasia/cli.rb
CHANGED
@@ -12,12 +12,15 @@ module Fantasia
|
|
12
12
|
|
13
13
|
desc 'build', 'Build the stack locally'
|
14
14
|
def build
|
15
|
-
if system("git diff-index --quiet --cached HEAD --")
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
if !system("git diff-index --quiet --cached HEAD --")
|
16
|
+
if options[:force]
|
17
|
+
STDERR.puts "Ignoring uncommitted changes. This is probably a bad idea.".colorize(:red)
|
18
|
+
else
|
19
|
+
STDERR.puts "There are uncommitted changes. Commit, stash, or revert them, or use the force option.".colorize(:red)
|
20
|
+
exit(1)
|
21
|
+
end
|
20
22
|
end
|
23
|
+
system("docker-compose build") || exit(1)
|
21
24
|
end
|
22
25
|
|
23
26
|
desc 'push', 'Push the stack to the registry'
|
data/lib/fantasia/version.rb
CHANGED