fantasia-cli 0.1.0 → 0.1.1
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 +3 -3
- 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: 248c9068a9728d1ba00cf37583a989bdcccdb86cf9f309b953cfd381a577c32e
|
4
|
+
data.tar.gz: 3d49814373c9073590df4c35de157c753e53ba2b02c03cb09a83784eb6a65004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbda6a43a8cfb6cbaa543c997ec35d72e5cc338aa0555f1ec7df1e46818b868eaea44a26a9aee4cb89286982cadfdb5741107bbe3226366ffc82aff7698ec210
|
7
|
+
data.tar.gz: ec65a20ee1fad48dbecdad606cdb58cd9b6a459cb80704fe86b1ec90f04a61d33f5fbca1c32a06a725dad3974a7cf6e9e69f43865b557e1aef5692dc258986ca
|
data/lib/fantasia/cli.rb
CHANGED
@@ -12,10 +12,10 @@ module Fantasia
|
|
12
12
|
|
13
13
|
desc 'build', 'Build the stack locally'
|
14
14
|
def build
|
15
|
-
if system("git diff-
|
15
|
+
if system("git diff-index --quiet --cached HEAD --") || options[:force]
|
16
16
|
system("docker-compose build") || exit(1)
|
17
17
|
else
|
18
|
-
puts "There are
|
18
|
+
puts "There are unsaved changes. Commit, stash, or revert them, or use the force option."
|
19
19
|
exit(1)
|
20
20
|
end
|
21
21
|
end
|
@@ -39,7 +39,7 @@ module Fantasia
|
|
39
39
|
}
|
40
40
|
r = JSON.parse(r.body)
|
41
41
|
if r["success"]
|
42
|
-
puts "
|
42
|
+
puts r["message"].colorize(:green)
|
43
43
|
else
|
44
44
|
puts r["message"].colorize(:red)
|
45
45
|
exit 1
|
data/lib/fantasia/version.rb
CHANGED