theme-juice 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: ff5a891c86d3b5da1c9c3a96ed1bb8ebcafdc580
4
- data.tar.gz: a12a7542374c4bf1f88e0ccd9eb25301dd42fbfc
3
+ metadata.gz: 9bcd3c14d55abc0b1a30186e53decfae90b928b6
4
+ data.tar.gz: 5010e36454a5043715d2fa1350fa081cc339637f
5
5
  SHA512:
6
- metadata.gz: 87bd9d2a3c3981a2c181321adcaf359269b4245dd055273b2906ac127476fd0ff03abfca16295149f2f2509ca8bf26f7a6033392c6ff966a7a25869f0502426a
7
- data.tar.gz: f9d0b95283f71c765a99035eaf337fb677933cf60e195e8b6b22197153fd7de661553126533e1a217b026fdc6c8d08483e59a640537cab8b56fbd674367f39ce
6
+ metadata.gz: e85f8ffcffcab58f25c1d75b1fb3cf69422e60f1856092cf523ce89cac9270e32c3e15f4d23d90646e3d75e3923e69a0032d34d20caea265a3275099e087daa8
7
+ data.tar.gz: 31af1966d61d6327d20b922a60e49e2074f68e95fe45a63a57f80a50d900e9497aa0f91df230a6f08af9b6f51e15491790fcebcacc3ff5c480f0671142167da1
data/bin/tj CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require "rubygems"
3
- require "pathname"
4
2
  require "thor"
5
3
 
6
4
  begin
@@ -37,7 +37,7 @@ module ThemeJuice
37
37
  if @config[subcommand]
38
38
  run ["#{@config[subcommand]} #{commands}"], false
39
39
  else
40
- say "Unable to find '#{subcommand}' command in '#{config_path}/tj-config.yml'. Aborting mission.", :red
40
+ say "Unable to find '#{subcommand}' command in '#{config_path}/tj-config.yml'. Aborting mission", :red
41
41
  exit 1
42
42
  end
43
43
  end
@@ -668,6 +668,12 @@ module ThemeJuice
668
668
  # @return {Void}
669
669
  ###
670
670
  def remove_dev_site
671
+
672
+ unless Dir.entries("#{::ThemeJuice::Utilities.get_vvv_path}").include? "www"
673
+ say "Cannot load VVV path. Aborting mission before something bad happens.", :red
674
+ exit 1
675
+ end
676
+
671
677
  if run ["rm -rf #{@opts[:dev_location]}"]
672
678
  say "VVV installation for '#{@opts[:site_name]}' successfully removed.", :yellow
673
679
  else
@@ -1,3 +1,3 @@
1
1
  module ThemeJuice
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse