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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fa5883d520eba4e7d6a773f268325eb16118604
4
- data.tar.gz: bad22bcde02a2d3b7d6f9b2bbd671a5d09bdb1cb
3
+ metadata.gz: ca28ee45e85997e4d818aa1cfcbe6219b48c1469
4
+ data.tar.gz: 0c75c8142a9c6c9f7d7ed3c85a7d0c026090b08f
5
5
  SHA512:
6
- metadata.gz: ef98d8cc62ff4a370814f1c6968a6bcfba7b1537fc2c3f75fb79b84cb83d1e9d9e2aad4d13020dc5802abddce6276c39adaac8f50d387ffa067f8c9fd7b53e75
7
- data.tar.gz: b432ba013666d77e951b31449d26ab5b0ef7f892c4762a5346761306f188c3c96531d4043a94473e465699899a90eb2948bfa4d9c0802d51ac4d4a0769395c06
6
+ metadata.gz: d7a295154caac2433f25ea06e69d88db28ad23f36b2f7c648ebfff687d5d059ebd7adf920cb9486b5f8f25db110c89671db91b96a4d35b605d0f94dc9b496215
7
+ data.tar.gz: 1fa853a7ebf3bb44657a800872d91b3f30b7dbff6757a895eb6eeeddd846a36ae8ee21bf49d19cb1cd169cb108b4580feaa7d8c01e33484f2cb97dd9f14443b4
@@ -121,7 +121,7 @@ module ThemeJuice
121
121
  end
122
122
 
123
123
  desc "init", "Initialize the VM"
124
- method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
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::VMProvision.new
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 }
@@ -22,7 +22,7 @@ module ThemeJuice
22
22
  end
23
23
 
24
24
  def init_project
25
- @project.no_provision = @opts.fetch("no_provision") { false }
25
+ @project.provision = @opts.fetch("provision") { false }
26
26
  end
27
27
  end
28
28
  end
@@ -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" "April 2016" "" "Theme Juice Manual"
4
+ .TH "TJ" "1" "July 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\fR \- WordPress development made easy
@@ -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" "April 2016" "" "Theme Juice Manual"
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
- April 2016 TJ-CREATE(1)
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" "April 2016" "" "Theme Juice Manual"
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
- April 2016 TJ-SETUP(1)
66
+ July 2016 TJ-SETUP(1)
@@ -251,4 +251,4 @@ ENVIRONMENT
251
251
 
252
252
 
253
253
 
254
- April 2016 TJ(1)
254
+ July 2016 TJ(1)
@@ -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.no_provision
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
- @io.notice "Remember, the VM needs to be provisioned before your changes take effect"
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
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.25.1"
4
+ VERSION = "0.26.0"
5
5
  end
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.25.1
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-06-15 00:00:00.000000000 Z
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