theme-juice 0.11.5 → 0.11.6
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/README.md +2 -2
- data/lib/theme-juice/cli.rb +4 -0
- data/lib/theme-juice/config.rb +2 -1
- data/lib/theme-juice/env.rb +10 -0
- data/lib/theme-juice/io.rb +1 -1
- data/lib/theme-juice/man/tj +18 -2
- data/lib/theme-juice/man/tj.txt +24 -14
- data/lib/theme-juice/tasks/apache.rb +4 -2
- data/lib/theme-juice/tasks/database.rb +2 -1
- data/lib/theme-juice/tasks/dns.rb +2 -2
- data/lib/theme-juice/tasks/dot_env.rb +4 -2
- data/lib/theme-juice/tasks/entry.rb +5 -3
- data/lib/theme-juice/tasks/import_database.rb +2 -1
- data/lib/theme-juice/tasks/location.rb +2 -1
- data/lib/theme-juice/tasks/nginx.rb +4 -2
- data/lib/theme-juice/tasks/repo.rb +4 -2
- data/lib/theme-juice/tasks/theme.rb +2 -2
- data/lib/theme-juice/tasks/vm_box.rb +2 -2
- data/lib/theme-juice/tasks/vm_customfile.rb +4 -2
- data/lib/theme-juice/tasks/vm_location.rb +4 -2
- data/lib/theme-juice/tasks/vm_plugins.rb +2 -2
- data/lib/theme-juice/tasks/vm_provision.rb +1 -1
- data/lib/theme-juice/tasks/vm_restart.rb +2 -1
- data/lib/theme-juice/tasks/wp_cli.rb +3 -2
- data/lib/theme-juice/util.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: 091252d696eee2ad02f569c28e95b6901c649e76
|
4
|
+
data.tar.gz: a63aab4998a739e8d966732bb7c30785a5b02f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d59843ab720bcc8df6f3fec468378201deae5630c36999e925caf458c982540dcf26f008049a9dc877d5afc2662e3a99d1d22c1c6619a41b5e50ca1758b40d
|
7
|
+
data.tar.gz: 19dd21d5e6b65b723e5b8e456ea031b37e0cf07aa3d2db8d0fc03f00275a89d93fb76b217c18d320528e22816a5786883ce764267c4ef57033b753c907fe0f3f
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
_This project is currently under active development and will not be completely 'stable' per-say until we hit `1.0`. Everything here is subject to change without notice. (We will of course semantically version all of our releases, with the minor version being incremented with new features/breaking changes.) Feel free to contribute to the development with new features, ideas or bug fixes._
|
10
10
|
|
11
|
-
_The master branch contains features currently in development
|
11
|
+
_The master branch contains features currently in development, so don't expect it to work at all times. Grab the newest RubyGem instead of building directly from master._
|
12
12
|
|
13
13
|
[View our contributing guidelines to get started!](#contributing)
|
14
14
|
|
@@ -65,7 +65,7 @@ tj delete
|
|
65
65
|
```
|
66
66
|
|
67
67
|
#### Deploying a project
|
68
|
-
This will deploy a project to the passed
|
68
|
+
This will deploy a project to the passed `<stage>` using [Capistrano](http://capistranorb.com/). Head over to the [docs](http://themejuice.it/deploy) to get started with your first deployment.
|
69
69
|
|
70
70
|
```
|
71
71
|
tj deploy <stage>
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -34,6 +34,8 @@ module ThemeJuice
|
|
34
34
|
@env.no_landrush = options[:no_landrush]
|
35
35
|
@env.no_port_forward = options[:no_port_forward]
|
36
36
|
@env.verbose = options[:verbose]
|
37
|
+
@env.quiet = options[:quiet]
|
38
|
+
@env.trace = options[:trace]
|
37
39
|
@env.dryrun = options[:dryrun]
|
38
40
|
@env.nginx = options[:nginx]
|
39
41
|
end
|
@@ -68,6 +70,8 @@ module ThemeJuice
|
|
68
70
|
class_option :no_landrush, :type => :boolean, :desc => ""
|
69
71
|
class_option :no_port_forward, :type => :boolean, :aliases => "--no-port-forwarding", :desc => ""
|
70
72
|
class_option :verbose, :type => :boolean, :desc => ""
|
73
|
+
class_option :quiet, :type => :boolean, :aliases => "--shh", :desc => ""
|
74
|
+
class_option :trace, :type => :boolean, :desc => ""
|
71
75
|
class_option :dryrun, :type => :boolean, :aliases => "--dry-run", :desc => ""
|
72
76
|
class_option :nginx, :type => :boolean, :aliases => "--no-apache", :desc => ""
|
73
77
|
|
data/lib/theme-juice/config.rb
CHANGED
data/lib/theme-juice/env.rb
CHANGED
@@ -16,6 +16,8 @@ module ThemeJuice
|
|
16
16
|
attr_accessor :no_landrush
|
17
17
|
attr_accessor :no_port_forward
|
18
18
|
attr_accessor :verbose
|
19
|
+
attr_accessor :quiet
|
20
|
+
attr_accessor :trace
|
19
21
|
attr_accessor :dryrun
|
20
22
|
attr_accessor :nginx
|
21
23
|
attr_accessor :stage
|
@@ -69,6 +71,14 @@ module ThemeJuice
|
|
69
71
|
@verbose = val ||= ENV.fetch("TJ_VERBOSE") { false }
|
70
72
|
end
|
71
73
|
|
74
|
+
def quiet=(val)
|
75
|
+
@quiet = val ||= ENV.fetch("TJ_QUIET") { false }
|
76
|
+
end
|
77
|
+
|
78
|
+
def trace=(val)
|
79
|
+
@trace = val ||= ENV.fetch("TJ_TRACE") { false }
|
80
|
+
end
|
81
|
+
|
72
82
|
def dryrun=(val)
|
73
83
|
@dryrun = val ||= ENV.fetch("TJ_DRYRUN") { false }
|
74
84
|
end
|
data/lib/theme-juice/io.rb
CHANGED
data/lib/theme-juice/man/tj
CHANGED
@@ -60,7 +60,15 @@ Disable automatic port forwarding
|
|
60
60
|
.
|
61
61
|
.TP
|
62
62
|
\fB\-\-verbose\fR
|
63
|
-
Prints out additional logging information
|
63
|
+
Prints out additional logging information
|
64
|
+
.
|
65
|
+
.TP
|
66
|
+
\fB\-\-quiet\fR, \fB\-\-shh\fR
|
67
|
+
Suppresses all command output
|
68
|
+
.
|
69
|
+
.TP
|
70
|
+
\fB\-\-trace\fR
|
71
|
+
Raises any exceptions caught during runtime
|
64
72
|
.
|
65
73
|
.TP
|
66
74
|
\fB\-\-dryrun\fR, \fB\-\-dry\-run\fR
|
@@ -243,7 +251,15 @@ Disable automatic port forwarding
|
|
243
251
|
.
|
244
252
|
.TP
|
245
253
|
\fBTJ_VERBOSE\fR=\fIbool\fR
|
246
|
-
Prints out additional logging information
|
254
|
+
Prints out additional logging information
|
255
|
+
.
|
256
|
+
.TP
|
257
|
+
\fBTJ_QUIET\fR=\fIbool\fR
|
258
|
+
Suppresses all command output
|
259
|
+
.
|
260
|
+
.TP
|
261
|
+
\fBTJ_TRACE\fR=\fIbool\fR
|
262
|
+
Raises any exceptions caught during runtime
|
247
263
|
.
|
248
264
|
.TP
|
249
265
|
\fBTJ_DRYRUN\fR=\fIbool\fR
|
data/lib/theme-juice/man/tj.txt
CHANGED
@@ -51,8 +51,13 @@ GLOBAL OPTIONS
|
|
51
51
|
Disable automatic port forwarding
|
52
52
|
|
53
53
|
--verbose
|
54
|
-
Prints
|
55
|
-
|
54
|
+
Prints out additional logging information
|
55
|
+
|
56
|
+
--quiet, --shh
|
57
|
+
Suppresses all command output
|
58
|
+
|
59
|
+
--trace
|
60
|
+
Raises any exceptions caught during runtime
|
56
61
|
|
57
62
|
--dryrun, --dry-run
|
58
63
|
Run a command without actually doing anything
|
@@ -83,12 +88,12 @@ SECONDARY COMMANDS
|
|
83
88
|
List all projects
|
84
89
|
|
85
90
|
vm, vagrant, vvv=[command[,command]...]
|
86
|
-
Manage
|
87
|
-
proxied
|
91
|
+
Manage development environment via vagrant(1). Commands are
|
92
|
+
proxied to your Vagrant installation so that they can be run
|
88
93
|
from any directory.
|
89
94
|
|
90
95
|
CONFIG COMMANDS
|
91
|
-
These
|
96
|
+
These run the corresponding command from your project's config file.
|
92
97
|
They accept any number of arguments, since the behavior and handling of
|
93
98
|
input is defined within the config file itself.
|
94
99
|
|
@@ -117,9 +122,9 @@ CONFIG COMMANDS
|
|
117
122
|
Manage and run project tests
|
118
123
|
|
119
124
|
CONFIG FILE
|
120
|
-
A
|
125
|
+
A YAML Juicefile(5) configuration can be used to store commonly-used
|
121
126
|
build scripts. Each command block sequence can be mapped to an individ-
|
122
|
-
ual
|
127
|
+
ual project's build tool, allowing a streamlined set of commands to be
|
123
128
|
used across multiple projects that utilize different tools.
|
124
129
|
|
125
130
|
commands
|
@@ -149,7 +154,7 @@ CONFIG FILE
|
|
149
154
|
commands.test
|
150
155
|
Command used to manage and run project tests
|
151
156
|
|
152
|
-
Placeholder
|
157
|
+
Placeholder arguments can be used within any command block sequence to
|
153
158
|
allow splat or indexed arguments to be passed to the corresponding com-
|
154
159
|
mand when executed.
|
155
160
|
|
@@ -159,8 +164,8 @@ CONFIG FILE
|
|
159
164
|
%argN%, %argumentN%
|
160
165
|
Where n is the argument index e.g. cmd %arg1% | cmd %arg2%
|
161
166
|
|
162
|
-
When
|
163
|
-
.tj.yaml
|
167
|
+
When naming your configuration file, use the recommended Juicefile, or
|
168
|
+
.tj.yaml naming convention. The raw filename regex matcher is below if
|
164
169
|
you want to be a little different.
|
165
170
|
|
166
171
|
/^(((\.)?(tj)|((J|j)uicefile))(\.y(a)?ml)?$)/
|
@@ -168,7 +173,7 @@ CONFIG FILE
|
|
168
173
|
ENVIRONMENT
|
169
174
|
All of the global options have a corresponding ENV variable that can be
|
170
175
|
set to permanently use the specified value each time tj(1) is run. This
|
171
|
-
is
|
176
|
+
is useful if you're using an alternate vagrant(1) box, or if you need
|
172
177
|
to disable certain features due to limited support e.g. on Windows.
|
173
178
|
|
174
179
|
TJ_VM_BOX=repository
|
@@ -184,7 +189,7 @@ ENVIRONMENT
|
|
184
189
|
Force directory prefix for project in VM
|
185
190
|
|
186
191
|
TJ_YOLO=bool
|
187
|
-
Say
|
192
|
+
Say yes to anything and everything, and maybe even get a few
|
188
193
|
surprises
|
189
194
|
|
190
195
|
TJ_BORING=bool
|
@@ -206,8 +211,13 @@ ENVIRONMENT
|
|
206
211
|
Disable automatic port forwarding
|
207
212
|
|
208
213
|
TJ_VERBOSE=bool
|
209
|
-
Prints
|
210
|
-
|
214
|
+
Prints out additional logging information
|
215
|
+
|
216
|
+
TJ_QUIET=bool
|
217
|
+
Suppresses all command output
|
218
|
+
|
219
|
+
TJ_TRACE=bool
|
220
|
+
Raises any exceptions caught during runtime
|
211
221
|
|
212
222
|
TJ_DRYRUN=bool
|
213
223
|
Run a command without actually doing anything
|
@@ -29,7 +29,8 @@ module ThemeJuice
|
|
29
29
|
def create_apache_file
|
30
30
|
unless apache_is_setup?
|
31
31
|
@io.log "Creating apache conf file"
|
32
|
-
@util.create_file apache_file, :verbose => @env.verbose
|
32
|
+
@util.create_file apache_file, { :verbose => @env.verbose,
|
33
|
+
:capture => @env.quiet } do
|
33
34
|
%Q{<VirtualHost *:80>
|
34
35
|
DocumentRoot #{@project.vm_srv}
|
35
36
|
ServerName #{@project.url}
|
@@ -43,7 +44,8 @@ module ThemeJuice
|
|
43
44
|
|
44
45
|
def remove_apache_file
|
45
46
|
@io.log "Removing apache conf file"
|
46
|
-
@util.remove_file apache_file, :verbose => @env.verbose
|
47
|
+
@util.remove_file apache_file, { :verbose => @env.verbose,
|
48
|
+
:capture => @env.quiet }
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -38,7 +38,8 @@ GRANT ALL PRIVILEGES ON `#{@project.db_name}`.* TO '#{@project.db_user}'@'localh
|
|
38
38
|
# Double check that the database should be dropped
|
39
39
|
if @io.agree? "Are you sure you want to drop the database for '#{@project.name}'?"
|
40
40
|
@io.log "Dropping database"
|
41
|
-
@util.run_inside_vm [], :verbose => @env.verbose
|
41
|
+
@util.run_inside_vm [], { :verbose => @env.verbose,
|
42
|
+
:capture => @env.quiet } do |cmds|
|
42
43
|
cmds << "cd #{@project.vm_srv}"
|
43
44
|
cmds << "wp db drop --yes"
|
44
45
|
end
|
@@ -36,8 +36,8 @@ end}
|
|
36
36
|
def remove_landrush_entry
|
37
37
|
unless @env.no_landrush
|
38
38
|
@io.log "Removing URL from Landrush"
|
39
|
-
@util.run "vagrant landrush rm #{@project.url}",
|
40
|
-
:
|
39
|
+
@util.run "vagrant landrush rm #{@project.url}", { :verbose => @env.verbose,
|
40
|
+
:capture => @env.quiet }
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -31,7 +31,8 @@ module ThemeJuice
|
|
31
31
|
def create_dot_env_file
|
32
32
|
unless dot_env_is_setup?
|
33
33
|
@io.log "Creating .env file"
|
34
|
-
@util.create_file dot_env_file, :verbose => @env.verbose
|
34
|
+
@util.create_file dot_env_file, { :verbose => @env.verbose,
|
35
|
+
:capture => @env.quiet } do
|
35
36
|
%Q{DB_NAME=#{@project.db_name}
|
36
37
|
DB_USER=#{@project.db_user}
|
37
38
|
DB_PASSWORD=#{@project.db_pass}
|
@@ -48,7 +49,8 @@ WP_SITEURL=http://#{@project.url}/wp
|
|
48
49
|
|
49
50
|
def remove_dot_env_file
|
50
51
|
@io.log "Removing .env file"
|
51
|
-
@util.remove_file dot_env_file, :verbose => @env.verbose
|
52
|
+
@util.remove_file dot_env_file, { :verbose => @env.verbose,
|
53
|
+
:capture => @env.quiet }
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
@@ -18,7 +18,8 @@ module ThemeJuice
|
|
18
18
|
def create_entry_file
|
19
19
|
unless entry_file_is_setup?
|
20
20
|
@io.log "Creating #{@entry.fetch(:name)} file"
|
21
|
-
@util.create_file @entry.fetch(:file), nil, :verbose => @env.verbose
|
21
|
+
@util.create_file @entry.fetch(:file), nil, { :verbose => @env.verbose,
|
22
|
+
:capture => @env.quiet }
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
@@ -29,7 +30,8 @@ module ThemeJuice
|
|
29
30
|
def create_entry(&block)
|
30
31
|
unless entry_is_setup?
|
31
32
|
@io.log "Creating #{@entry.fetch(:name)} entry"
|
32
|
-
@util.append_to_file @entry.fetch(:file), :verbose => @env.verbose
|
33
|
+
@util.append_to_file @entry.fetch(:file), { :verbose => @env.verbose,
|
34
|
+
:capture => @env.quiet } do
|
33
35
|
%Q{# Begin '#{@entry.fetch(:project)}' #{@entry.fetch(:id)}
|
34
36
|
# The contents below are automatically generated by Theme Juice. Do not modify.
|
35
37
|
#{yield}
|
@@ -43,7 +45,7 @@ module ThemeJuice
|
|
43
45
|
def remove_entry
|
44
46
|
@io.log "Removing #{@entry.fetch(:name)} entry"
|
45
47
|
@util.gsub_file @entry.fetch(:file), /(#(#*)? Begin '#{@entry.fetch(:project)}' #{@entry.fetch(:id)})(.*?)(#(#*)? End '#{@entry.fetch(:project)}' #{@entry.fetch(:id)})\n+/m,
|
46
|
-
"", :verbose => @env.verbose
|
48
|
+
"", { :verbose => @env.verbose, :capture => @env.quiet }
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -17,7 +17,8 @@ module ThemeJuice
|
|
17
17
|
def import_db
|
18
18
|
if @project.db_import
|
19
19
|
@io.log "Importing existing database"
|
20
|
-
@util.run_inside_vm [], :verbose => @env.verbose
|
20
|
+
@util.run_inside_vm [], { :verbose => @env.verbose,
|
21
|
+
:capture => @env.quiet } do |cmds|
|
21
22
|
cmds << "cd #{@project.vm_srv}"
|
22
23
|
cmds << "wp db import #{@project.db_import}"
|
23
24
|
end
|
@@ -16,7 +16,8 @@ module ThemeJuice
|
|
16
16
|
|
17
17
|
def create_path
|
18
18
|
@io.log "Creating project location"
|
19
|
-
@util.empty_directory @project.location, :verbose => @env.verbose
|
19
|
+
@util.empty_directory @project.location, { :verbose => @env.verbose,
|
20
|
+
:capture => @env.quiet }
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -29,7 +29,8 @@ module ThemeJuice
|
|
29
29
|
def create_nginx_file
|
30
30
|
unless nginx_is_setup?
|
31
31
|
@io.log "Creating nginx conf file"
|
32
|
-
@util.create_file nginx_file, :verbose => @env.verbose
|
32
|
+
@util.create_file nginx_file, { :verbose => @env.verbose,
|
33
|
+
:capture => @env.quiet } do
|
33
34
|
%Q(server {
|
34
35
|
listen 80;
|
35
36
|
listen 443 ssl;
|
@@ -45,7 +46,8 @@ module ThemeJuice
|
|
45
46
|
|
46
47
|
def remove_nginx_file
|
47
48
|
@io.log "Removing nginx conf file"
|
48
|
-
@util.remove_file nginx_file, :verbose => @env.verbose
|
49
|
+
@util.remove_file nginx_file, { :verbose => @env.verbose,
|
50
|
+
:capture => @env.quiet }
|
49
51
|
end
|
50
52
|
end
|
51
53
|
end
|
@@ -30,7 +30,8 @@ module ThemeJuice
|
|
30
30
|
remove_repo if repo_is_setup?
|
31
31
|
|
32
32
|
@util.inside @project.location do
|
33
|
-
@util.run [], :verbose => @env.verbose
|
33
|
+
@util.run [], { :verbose => @env.verbose,
|
34
|
+
:capture => @env.quiet } do |cmds|
|
34
35
|
cmds << "git init"
|
35
36
|
cmds << "git remote add origin #{@project.repository}"
|
36
37
|
end
|
@@ -39,7 +40,8 @@ module ThemeJuice
|
|
39
40
|
|
40
41
|
def remove_repo
|
41
42
|
if @io.agree? "Do you want to overwrite the current repo in '#{@project.location}'?"
|
42
|
-
@util.remove_dir git_dir, :verbose => @env.verbose
|
43
|
+
@util.remove_dir git_dir, { :verbose => @env.verbose,
|
44
|
+
:capture => @env.quiet }
|
43
45
|
else
|
44
46
|
@io.error "Run the command again without a repository, or remove the repository currently in '#{@project.location}'"
|
45
47
|
end
|
@@ -20,8 +20,8 @@ module ThemeJuice
|
|
20
20
|
def clone_theme
|
21
21
|
@io.log "Cloning theme"
|
22
22
|
@util.inside @project.location do
|
23
|
-
@util.run "git clone --depth 1 #{@project.theme} .",
|
24
|
-
:verbose => @env.verbose
|
23
|
+
@util.run "git clone --depth 1 #{@project.theme} .", {
|
24
|
+
:verbose => @env.verbose, :capture => @env.quiet }
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -21,8 +21,8 @@ module ThemeJuice
|
|
21
21
|
def install_box
|
22
22
|
unless box_is_installed?
|
23
23
|
@io.log "Installing Vagrant box"
|
24
|
-
@util.run "git clone #{@env.vm_box} #{@env.vm_path} --depth 1",
|
25
|
-
:verbose => @env.verbose
|
24
|
+
@util.run "git clone #{@env.vm_box} #{@env.vm_path} --depth 1", {
|
25
|
+
:verbose => @env.verbose, :capture => @env.quiet }
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -29,13 +29,15 @@ module ThemeJuice
|
|
29
29
|
def create_custom_file
|
30
30
|
unless custom_file_is_setup?
|
31
31
|
@io.log "Creating customfile"
|
32
|
-
@util.create_file custom_file, nil, :verbose => @env.verbose
|
32
|
+
@util.create_file custom_file, nil, { :verbose => @env.verbose,
|
33
|
+
:capture => @env.quiet }
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
37
|
def remove_custom_file
|
37
38
|
@io.log "Removing customfile"
|
38
|
-
@util.remove_file custom_file, :verbose => @env.verbose
|
39
|
+
@util.remove_file custom_file, { :verbose => @env.verbose,
|
40
|
+
:capture => @env.quiet }
|
39
41
|
end
|
40
42
|
end
|
41
43
|
end
|
@@ -20,12 +20,14 @@ module ThemeJuice
|
|
20
20
|
|
21
21
|
def create_path
|
22
22
|
@io.log "Creating project location in VM"
|
23
|
-
@util.empty_directory @project.vm_location, :verbose => @env.verbose
|
23
|
+
@util.empty_directory @project.vm_location, { :verbose => @env.verbose,
|
24
|
+
:capture => @env.quiet }
|
24
25
|
end
|
25
26
|
|
26
27
|
def remove_path
|
27
28
|
@io.log "Removing project location in VM"
|
28
|
-
@util.remove_dir @project.vm_location, :verbose => @env.verbose
|
29
|
+
@util.remove_dir @project.vm_location, { :verbose => @env.verbose,
|
30
|
+
:capture => @env.quiet }
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
@@ -23,8 +23,8 @@ module ThemeJuice
|
|
23
23
|
def install_vagrant_plugin(plugin, version)
|
24
24
|
unless vagrant_plugin_is_installed? plugin
|
25
25
|
@io.log "Installing #{plugin}"
|
26
|
-
@util.run "vagrant plugin install #{plugin} --plugin-version #{version}",
|
27
|
-
:verbose => @env.verbose
|
26
|
+
@util.run "vagrant plugin install #{plugin} --plugin-version #{version}", {
|
27
|
+
:verbose => @env.verbose, :capture => @env.quiet }
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -29,7 +29,8 @@ module ThemeJuice
|
|
29
29
|
def create_wp_cli_file
|
30
30
|
unless wp_cli_is_setup?
|
31
31
|
@io.log "Creating WP-CLI file"
|
32
|
-
@util.create_file wp_cli_file, :verbose => @env.verbose
|
32
|
+
@util.create_file wp_cli_file, { :verbose => @env.verbose,
|
33
|
+
:capture => @env.quiet } do
|
33
34
|
%Q{require:
|
34
35
|
- vendor/autoload.php
|
35
36
|
ssh:
|
@@ -45,7 +46,7 @@ ssh:
|
|
45
46
|
|
46
47
|
def remove_wp_cli_file
|
47
48
|
@io.log "Removing WP-CLI file"
|
48
|
-
@util.remove_file wp_cli_file
|
49
|
+
@util.remove_file wp_cli_file
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|
data/lib/theme-juice/util.rb
CHANGED
@@ -24,7 +24,7 @@ module ThemeJuice
|
|
24
24
|
def run(command, config = {}, &block)
|
25
25
|
if command.is_a? Array
|
26
26
|
yield command if block_given?
|
27
|
-
_run command.join("&&"), config
|
27
|
+
_run command.join(" && "), config
|
28
28
|
else
|
29
29
|
_run command, config
|
30
30
|
end
|
@@ -34,7 +34,7 @@ module ThemeJuice
|
|
34
34
|
inside @env.vm_path do
|
35
35
|
if command.is_a? Array
|
36
36
|
yield command if block_given?
|
37
|
-
_run %Q[vagrant ssh -c "#{command.join("&&")}"], config
|
37
|
+
_run %Q[vagrant ssh -c "#{command.join(" && ")}"], config
|
38
38
|
else
|
39
39
|
_run %Q[vagrant ssh -c "#{command}"], config
|
40
40
|
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.11.
|
4
|
+
version: 0.11.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezekiel Gabrielse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|