theme-juice 0.27.0 → 0.27.1
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/theme-juice/commands/create.rb +10 -8
- data/lib/theme-juice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 211a3118a9984e05bc39a5829876068e91c78dd5
|
4
|
+
data.tar.gz: bea6f50269ab5ddee35412c894a30398dbf79c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca5f278f91ebaf3b92edff67e282a97e2f3822d4692ad8fe6df312aa405c69dfb5aec4c762a1edd9b7beb0f352ead8f3252a9ffeaef243384188070fc474024
|
7
|
+
data.tar.gz: bbcae94a5bcf68c25690a4f1b06974a1f943977aca333fde30e7b709c2d32b520414f3a927287b58c745192611bfdf0e2e9667859b919865ddd5f293741990c9
|
@@ -50,14 +50,6 @@ module ThemeJuice
|
|
50
50
|
private
|
51
51
|
|
52
52
|
def init_project
|
53
|
-
|
54
|
-
# Assume bare if the project path isn't empty (template install will fail)
|
55
|
-
unless @opts[:bare] || Dir["#{@project.location}/*"].empty?
|
56
|
-
@opts[:template] = false
|
57
|
-
@opts[:bare] = true
|
58
|
-
@io.notice "Project location is not empty. Assuming you meant to run a setup..."
|
59
|
-
end
|
60
|
-
|
61
53
|
@project.use_defaults = @opts.fetch("use_defaults") { false }
|
62
54
|
@project.bare = @opts.fetch("bare") { false }
|
63
55
|
@project.skip_repo = @opts.fetch("skip_repo") { false }
|
@@ -71,6 +63,14 @@ module ThemeJuice
|
|
71
63
|
@project.no_env = @opts.fetch("no_env") { @project.wp_config_modify }
|
72
64
|
@project.name = @opts.fetch("name") { name }
|
73
65
|
@project.location = @opts.fetch("location") { location }
|
66
|
+
|
67
|
+
# Assume bare if the project path isn't empty (template install will fail)
|
68
|
+
unless @project.bare || Dir["#{@project.location}/*"].empty?
|
69
|
+
@project.template = false
|
70
|
+
@project.bare = true
|
71
|
+
@io.notice "Project location is not empty. Assuming you meant to run a setup..."
|
72
|
+
end
|
73
|
+
|
74
74
|
@project.url = @opts.fetch("url") { url }
|
75
75
|
@project.xip_url = @opts.fetch("xip_url") { xip_url }
|
76
76
|
@project.template = @opts.fetch("template") { template }
|
@@ -98,6 +98,7 @@ module ThemeJuice
|
|
98
98
|
def name
|
99
99
|
name =
|
100
100
|
begin
|
101
|
+
raise NoMethodError unless @config.exist?
|
101
102
|
@io.say "Inferred project name '#{@config.project.name}' from existing config...", {
|
102
103
|
:color => :yellow, :icon => :notice }
|
103
104
|
@config.project.name
|
@@ -146,6 +147,7 @@ module ThemeJuice
|
|
146
147
|
def url
|
147
148
|
url =
|
148
149
|
begin
|
150
|
+
raise NoMethodError unless @config.exist?
|
149
151
|
@io.say "Inferred project url '#{@config.project.url}' from existing config...", {
|
150
152
|
:color => :yellow, :icon => :notice }
|
151
153
|
@config.project.url
|
data/lib/theme-juice/version.rb
CHANGED