theme-juice 0.25.1 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/theme-juice/cli.rb +1 -3
- data/lib/theme-juice/commands/create.rb +1 -2
- data/lib/theme-juice/commands/init.rb +1 -1
- data/lib/theme-juice/man/tj +1 -1
- data/lib/theme-juice/man/tj-create +1 -5
- data/lib/theme-juice/man/tj-create.txt +1 -4
- data/lib/theme-juice/man/tj-init +20 -0
- data/lib/theme-juice/man/tj-init.txt +21 -0
- data/lib/theme-juice/man/tj-setup +1 -5
- data/lib/theme-juice/man/tj-setup.txt +1 -4
- data/lib/theme-juice/man/tj.txt +1 -1
- data/lib/theme-juice/project.rb +1 -1
- data/lib/theme-juice/tasks/vm_provision.rb +12 -4
- data/lib/theme-juice/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca28ee45e85997e4d818aa1cfcbe6219b48c1469
|
4
|
+
data.tar.gz: 0c75c8142a9c6c9f7d7ed3c85a7d0c026090b08f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7a295154caac2433f25ea06e69d88db28ad23f36b2f7c648ebfff687d5d059ebd7adf920cb9486b5f8f25db110c89671db91b96a4d35b605d0f94dc9b496215
|
7
|
+
data.tar.gz: 1fa853a7ebf3bb44657a800872d91b3f30b7dbff6757a895eb6eeeddd846a36ae8ee21bf49d19cb1cd169cb108b4580feaa7d8c01e33484f2cb97dd9f14443b4
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -121,7 +121,7 @@ module ThemeJuice
|
|
121
121
|
end
|
122
122
|
|
123
123
|
desc "init", "Initialize the VM"
|
124
|
-
method_option :
|
124
|
+
method_option :provision, :type => :boolean, :aliases => %w[--restart], :desc => ""
|
125
125
|
def init
|
126
126
|
@io.say "Initializing the VM...", {
|
127
127
|
:color => [:black, :on_green, :bold],
|
@@ -145,7 +145,6 @@ module ThemeJuice
|
|
145
145
|
method_option :no_wp_cli, :type => :boolean, :aliases => %w[--no-wp-cli-config], :desc => ""
|
146
146
|
method_option :no_db, :type => :boolean, :desc => ""
|
147
147
|
method_option :no_env, :type => :boolean, :desc => ""
|
148
|
-
method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
|
149
148
|
method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
|
150
149
|
method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
|
151
150
|
method_option :no_ssl, :type => :boolean, :aliases => %w[--no-https], :desc => ""
|
@@ -167,7 +166,6 @@ module ThemeJuice
|
|
167
166
|
method_option :no_wp_cli, :type => :boolean, :aliases => %w[--no-wp-cli-config], :desc => ""
|
168
167
|
method_option :no_db, :type => :boolean, :desc => ""
|
169
168
|
method_option :no_env, :type => :boolean, :desc => ""
|
170
|
-
method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
|
171
169
|
method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
|
172
170
|
method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
|
173
171
|
method_option :no_ssl, :type => :boolean, :aliases => %w[--no-https], :desc => ""
|
@@ -41,7 +41,7 @@ module ThemeJuice
|
|
41
41
|
tasks << Tasks::DNS.new
|
42
42
|
tasks << Tasks::WPCLI.new
|
43
43
|
tasks << Tasks::Repo.new
|
44
|
-
tasks << Tasks::
|
44
|
+
tasks << Tasks::VMRestart.new
|
45
45
|
tasks << Tasks::ImportDatabase.new
|
46
46
|
tasks << Tasks::CreateSuccess.new
|
47
47
|
end
|
@@ -59,7 +59,6 @@ module ThemeJuice
|
|
59
59
|
@project.no_db = @opts.fetch("no_db") { false }
|
60
60
|
@project.wp_config_modify = @opts.fetch("wp_config_modify") { false }
|
61
61
|
@project.no_config = @opts.fetch("no_config") { false }
|
62
|
-
@project.no_provision = @opts.fetch("no_provision") { false }
|
63
62
|
@project.no_ssl = @opts.fetch("no_ssl") { false }
|
64
63
|
@project.no_env = @opts.fetch("no_env") { @project.wp_config_modify }
|
65
64
|
@project.name = @opts.fetch("name") { name }
|
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\-CREATE" "1" "
|
4
|
+
.TH "TJ\-CREATE" "1" "July 2016" "" "Theme Juice Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBtj\-create\fR \- Create a new project
|
@@ -103,10 +103,6 @@ Project does not need a database
|
|
103
103
|
Project does not need a \fB\.env\fR file
|
104
104
|
.
|
105
105
|
.TP
|
106
|
-
\fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
|
107
|
-
Do not provision VM after create(1)
|
108
|
-
.
|
109
|
-
.TP
|
110
106
|
\fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
|
111
107
|
Project does not have a Juicefile(5) config
|
112
108
|
.
|
@@ -82,9 +82,6 @@ GLOBAL OPTIONS
|
|
82
82
|
--no-env
|
83
83
|
Project does not need a .env file
|
84
84
|
|
85
|
-
--no-provision, --no-restart
|
86
|
-
Do not provision VM after create(1)
|
87
|
-
|
88
85
|
--no-config, --no-juicefile
|
89
86
|
Project does not have a Juicefile(5) config
|
90
87
|
|
@@ -98,4 +95,4 @@ GLOBAL OPTIONS
|
|
98
95
|
|
99
96
|
|
100
97
|
|
101
|
-
|
98
|
+
July 2016 TJ-CREATE(1)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "TJ\-INIT" "1" "July 2016" "" "Theme Juice Manual"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBtj\-init\fR \- Initialize the virtual machine
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBtj init\fR [\-\-flag=\fIarg\fR] [\-\-flag]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Initializes the virtual machine\.
|
14
|
+
.
|
15
|
+
.SH "GLOBAL OPTIONS"
|
16
|
+
.
|
17
|
+
.TP
|
18
|
+
\fB\-\-provision\fR, \fB\-\-restart\fR
|
19
|
+
Run provisioners after initializing the virtual machine
|
20
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
TJ-INIT(1) Theme Juice Manual TJ-INIT(1)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
tj-init - Initialize the virtual machine
|
7
|
+
|
8
|
+
SYNOPSIS
|
9
|
+
tj init [--flag=arg] [--flag]
|
10
|
+
|
11
|
+
DESCRIPTION
|
12
|
+
Initializes the virtual machine.
|
13
|
+
|
14
|
+
GLOBAL OPTIONS
|
15
|
+
--provision, --restart
|
16
|
+
Run provisioners after initializing the virtual machine
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
July 2016 TJ-INIT(1)
|
@@ -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\-SETUP" "1" "
|
4
|
+
.TH "TJ\-SETUP" "1" "July 2016" "" "Theme Juice Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBtj\-setup\fR \- Setup an existing project
|
@@ -63,10 +63,6 @@ Project does not need a database
|
|
63
63
|
Project does not need a \fB\.env\fR file
|
64
64
|
.
|
65
65
|
.TP
|
66
|
-
\fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
|
67
|
-
Do not provision VM after setup(1)
|
68
|
-
.
|
69
|
-
.TP
|
70
66
|
\fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
|
71
67
|
Project does not have a Juicefile(5) config
|
72
68
|
.
|
@@ -50,9 +50,6 @@ GLOBAL OPTIONS
|
|
50
50
|
--no-env
|
51
51
|
Project does not need a .env file
|
52
52
|
|
53
|
-
--no-provision, --no-restart
|
54
|
-
Do not provision VM after setup(1)
|
55
|
-
|
56
53
|
--no-config, --no-juicefile
|
57
54
|
Project does not have a Juicefile(5) config
|
58
55
|
|
@@ -66,4 +63,4 @@ GLOBAL OPTIONS
|
|
66
63
|
|
67
64
|
|
68
65
|
|
69
|
-
|
66
|
+
July 2016 TJ-SETUP(1)
|
data/lib/theme-juice/man/tj.txt
CHANGED
data/lib/theme-juice/project.rb
CHANGED
@@ -28,10 +28,10 @@ module ThemeJuice
|
|
28
28
|
attr_accessor :no_wp_cli
|
29
29
|
attr_accessor :no_db
|
30
30
|
attr_accessor :no_env
|
31
|
-
attr_accessor :no_provision
|
32
31
|
attr_accessor :no_ssl
|
33
32
|
attr_accessor :no_config
|
34
33
|
attr_accessor :wp_config_modify
|
34
|
+
attr_accessor :provision
|
35
35
|
|
36
36
|
def vm_root
|
37
37
|
@vm_root ||= File.expand_path("#{Env.vm_path}/www")
|
@@ -9,12 +9,10 @@ module ThemeJuice
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def execute
|
12
|
-
if @project.
|
13
|
-
@io.notice "Skipping provision..."
|
14
|
-
elsif @io.agree? "In order to complete the process, you need to provision the VM. Do it now?"
|
12
|
+
if @project.provision
|
15
13
|
provision
|
16
14
|
else
|
17
|
-
|
15
|
+
restart
|
18
16
|
end
|
19
17
|
end
|
20
18
|
|
@@ -44,6 +42,16 @@ module ThemeJuice
|
|
44
42
|
end
|
45
43
|
end
|
46
44
|
end
|
45
|
+
|
46
|
+
def restart
|
47
|
+
@io.log "Restarting VM"
|
48
|
+
@util.inside @env.vm_path do
|
49
|
+
@util.run [] do |cmds|
|
50
|
+
cmds << "vagrant halt" if vm_is_up?
|
51
|
+
cmds << "vagrant up --no-provision"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
47
55
|
end
|
48
56
|
end
|
49
57
|
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.
|
4
|
+
version: 0.26.0
|
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-
|
11
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -166,6 +166,8 @@ files:
|
|
166
166
|
- lib/theme-juice/man/tj-delete.txt
|
167
167
|
- lib/theme-juice/man/tj-deploy
|
168
168
|
- lib/theme-juice/man/tj-deploy.txt
|
169
|
+
- lib/theme-juice/man/tj-init
|
170
|
+
- lib/theme-juice/man/tj-init.txt
|
169
171
|
- lib/theme-juice/man/tj-setup
|
170
172
|
- lib/theme-juice/man/tj-setup.txt
|
171
173
|
- lib/theme-juice/man/tj.txt
|