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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 248c9068a9728d1ba00cf37583a989bdcccdb86cf9f309b953cfd381a577c32e
4
- data.tar.gz: 3d49814373c9073590df4c35de157c753e53ba2b02c03cb09a83784eb6a65004
3
+ metadata.gz: 86be248a03a4f8a603af5e2ee1e5ee766ce73f38698d02599ba1d2dcb1698b2b
4
+ data.tar.gz: c2696b9678d511d3aa45f2250f06ea0d5d822730bdfcc895dcea59c8ab989384
5
5
  SHA512:
6
- metadata.gz: dbda6a43a8cfb6cbaa543c997ec35d72e5cc338aa0555f1ec7df1e46818b868eaea44a26a9aee4cb89286982cadfdb5741107bbe3226366ffc82aff7698ec210
7
- data.tar.gz: ec65a20ee1fad48dbecdad606cdb58cd9b6a459cb80704fe86b1ec90f04a61d33f5fbca1c32a06a725dad3974a7cf6e9e69f43865b557e1aef5692dc258986ca
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 --") || options[:force]
16
- system("docker-compose build") || exit(1)
17
- else
18
- puts "There are unsaved changes. Commit, stash, or revert them, or use the force option."
19
- exit(1)
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'
@@ -1,3 +1,3 @@
1
1
  module Fantasia
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fantasia-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Baum