theme-juice 0.19.2 → 0.19.3
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/cli.rb +9 -5
- data/lib/theme-juice/man/tj +3 -3
- data/lib/theme-juice/man/tj.txt +3 -3
- data/lib/theme-juice/tasks/create_confirm.rb +3 -3
- data/lib/theme-juice/tasks/create_success.rb +1 -1
- data/lib/theme-juice/tasks/delete_confirm.rb +3 -3
- data/lib/theme-juice/tasks/init_confirm.rb +1 -1
- data/lib/theme-juice/tasks/init_success.rb +1 -1
- data/lib/theme-juice/tasks/list.rb +2 -2
- data/lib/theme-juice/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f48149c540dd7b3d8b8542c58dc42b37b4399ce
|
|
4
|
+
data.tar.gz: 430eb78600a1810cdaf15a0685871b9dd71ec91d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ef0403b26e7007b5cb1b8e0c26dd340495767d803deaf8a0702ae1c12d6b044391b166e35ff739983a7068117306f10d3123b8c832db1e6d2ea663c50a1e2a8
|
|
7
|
+
data.tar.gz: d4e62b8515be484afe68b6d162f1dfe22b8a4faaaf8a3dad5a0c540275b2a85bb1195ef824ae9a801b868ac921e390b3e3c752ef1cff5866f121bd9d93f0d216
|
data/lib/theme-juice/cli.rb
CHANGED
|
@@ -97,15 +97,19 @@ module ThemeJuice
|
|
|
97
97
|
@io.say @version, :color => :green
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
desc "--env", "Print an environment property"
|
|
101
|
-
method_option :property, :type => :string, :aliases => %w[-p --prop], :
|
|
100
|
+
desc "--env [PROP]", "Print an environment property"
|
|
101
|
+
method_option :property, :type => :string, :aliases => %w[-p --prop], :default => nil, :desc => ""
|
|
102
102
|
def env
|
|
103
|
-
|
|
103
|
+
if options[:property].nil?
|
|
104
|
+
@io.list "Environment:", :green, @env.inspect
|
|
105
|
+
else
|
|
106
|
+
prop = options[:property].gsub "-", "_"
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
@io.error "Environment property '#{prop}' does not exist",
|
|
106
109
|
NotImplementedError unless @env.respond_to? prop
|
|
107
110
|
|
|
108
|
-
|
|
111
|
+
@io.say @env.send(prop), :color => :green
|
|
112
|
+
end
|
|
109
113
|
end
|
|
110
114
|
|
|
111
115
|
desc "init", "Initialize the VM"
|
data/lib/theme-juice/man/tj
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
3
3
|
.
|
|
4
|
-
.TH "TJ" "1" "
|
|
4
|
+
.TH "TJ" "1" "January 2016" "" "Theme Juice Manual"
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBtj\fR \- WordPress development made easy
|
|
@@ -115,8 +115,8 @@ Deploy and manage a project
|
|
|
115
115
|
Print the current version
|
|
116
116
|
.
|
|
117
117
|
.TP
|
|
118
|
-
\fBenv\fR, \fB\-\-env\fR
|
|
119
|
-
Print
|
|
118
|
+
\fBenv\fR, \fB\-\-env\fR=[\fIproperty\fR]
|
|
119
|
+
Print environment properties
|
|
120
120
|
.
|
|
121
121
|
.TP
|
|
122
122
|
\fBlist\fR, \fBls\fR, \fBprojects\fR, \fBapps\fR, \fBsites\fR
|
data/lib/theme-juice/man/tj.txt
CHANGED
|
@@ -88,8 +88,8 @@ SECONDARY COMMANDS
|
|
|
88
88
|
version, --version, -v
|
|
89
89
|
Print the current version
|
|
90
90
|
|
|
91
|
-
env, --env=property
|
|
92
|
-
Print
|
|
91
|
+
env, --env=[property]
|
|
92
|
+
Print environment properties
|
|
93
93
|
|
|
94
94
|
list, ls, projects, apps, sites
|
|
95
95
|
List all projects
|
|
@@ -238,4 +238,4 @@ ENVIRONMENT
|
|
|
238
238
|
|
|
239
239
|
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
January 2016 TJ(1)
|
|
@@ -14,7 +14,7 @@ module ThemeJuice
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
private
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
def is_user_a_smarty_pants?
|
|
19
19
|
if @env.yolo && @project.use_defaults
|
|
20
20
|
@io.say "Well, don't you just have everything all figured out?", {
|
|
@@ -23,8 +23,8 @@ module ThemeJuice
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def confirm
|
|
26
|
-
@io.list "Your settings
|
|
27
|
-
|
|
26
|
+
@io.list "Your settings:", :yellow, settings
|
|
27
|
+
|
|
28
28
|
unless @io.agree? "Do these settings look correct?"
|
|
29
29
|
@io.error "Dang typos..."
|
|
30
30
|
end
|
|
@@ -14,11 +14,11 @@ module ThemeJuice
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
private
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
def boom?
|
|
19
19
|
if @env.yolo
|
|
20
|
-
@io.say "
|
|
21
|
-
:
|
|
20
|
+
@io.say "Livin' on the edge, huh?!", { :color => :yellow,
|
|
21
|
+
:icon => :general }
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -15,7 +15,7 @@ module ThemeJuice
|
|
|
15
15
|
private
|
|
16
16
|
|
|
17
17
|
def confirm
|
|
18
|
-
@io.list "Your settings
|
|
18
|
+
@io.list "Your settings:", :yellow, @env.inspect
|
|
19
19
|
|
|
20
20
|
unless @io.agree? "Do these settings look correct?"
|
|
21
21
|
@io.error "Well, dang. Maybe check out the various flags you can use."
|
|
@@ -14,7 +14,7 @@ module ThemeJuice
|
|
|
14
14
|
if self.send(prop).empty?
|
|
15
15
|
@io.log "Nothing to list"
|
|
16
16
|
else
|
|
17
|
-
@io.list "#{prop.capitalize}
|
|
17
|
+
@io.list "#{prop.capitalize}:", :green, self.send(prop)
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ module ThemeJuice
|
|
|
23
23
|
|
|
24
24
|
Dir["#{@project.vm_root}/*"].each do |f|
|
|
25
25
|
name = File.basename f
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
if File.directory?(f) && name.include?(@env.vm_prefix)
|
|
28
28
|
res << name.gsub(/(#{@env.vm_prefix})/, "")
|
|
29
29
|
end
|
data/lib/theme-juice/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: theme-juice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.19.
|
|
4
|
+
version: 0.19.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ezekiel Gabrielse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|