theme-juice 0.21.1 → 0.22.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: 666e00c9b2d0d0a81fed922d0b12c2fc9a0e7e6f
4
- data.tar.gz: 480f193d3ef55de7cdab07dfb3dfea47826cbaeb
3
+ metadata.gz: 7bfa46032c7a427c200ed6c42301423ac9c4e7c2
4
+ data.tar.gz: 38d98b4ec497bcd9e31cb113aca0804af7d91ed3
5
5
  SHA512:
6
- metadata.gz: 2ca716d45416e22f9239c24869f37ec42a4bf1ff931fef111a2785e5dc7b9245bf98129526fa7671d13b01979b7a7ca088634143c6f7b220685fa3e2d08b08fb
7
- data.tar.gz: d338bc871ea97449c27d5f27200ebd4f43aa83bd79901f6ee627032aeede498df0fb4f1408051ac10339d061da1db166f56669e8aaaeaff15f113753d5ad76a2
6
+ metadata.gz: 88129bf7d1e8c546b4433c3997d95fb4e07ce45c75c89ca7308b9f312858b6a6f37ac48044fc25bfcac14a99f97d7c839a87a773561d5b9332ef5043f232f68d
7
+ data.tar.gz: ccf8ecc6a246c23dae452d70eb66e66538e5407af30fef4e30e7fed66fd298326a65597882d0efae65ee0bf7a4573551e97e30e74d09ed246d2aa33ff12a0d3a
data/README.md CHANGED
@@ -117,6 +117,7 @@ Or, you can also check out [themejuice.it](http://themejuice.it) for a pretty we
117
117
  1. [Can I access a project from another device (i.e. mobile)?](#can-i-access-a-project-from-another-device-ie-mobile)
118
118
  1. [Can I add my starter template, ________?](#can-i-add-my-starter-template-________)
119
119
  1. [Can I integrate my deployments with Slack?](#can-i-integrate-my-deployments-with-slack)
120
+ 1. [Can I use a self-signed SSL cert?](#can-i-use-a-self-signed-ssl-cert)
120
121
  1. [Troubleshooting](#troubleshooting)
121
122
 
122
123
  ### Is Windows supported?
@@ -275,6 +276,9 @@ deployment:
275
276
 
276
277
  Check out [capistrano-slackify](https://github.com/onthebeach/capistrano-slackify) for more information.
277
278
 
279
+ ### Can I use a self-signed SSL cert?
280
+ Yes, unless you used the `--no-ssl` flag, `tj` will set up each new site to support SSL, [and the VM will generate a new self-signed certificate](https://github.com/ezekg/theme-juice-vvv#automatically-generated-self-signed-ssl-certs). In order to take advantage of it, [you'll need to accept the self-signed certificate on your host machine](https://github.com/ezekg/theme-juice-vvv#accepting-a-self-signed-ssl-cert).
281
+
278
282
  ## Troubleshooting
279
283
 
280
284
  1. [Help! It won't let me `git clone` anything!](#help-it-wont-let-me-git-clone-anything)
@@ -141,6 +141,7 @@ module ThemeJuice
141
141
  method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
142
142
  method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
143
143
  method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
144
+ method_option :no_ssl, :type => :boolean, :aliases => %w[--no-https], :desc => ""
144
145
  def create
145
146
  @io.hello
146
147
  @create.new(options).execute
@@ -162,6 +163,7 @@ module ThemeJuice
162
163
  method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
163
164
  method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
164
165
  method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
166
+ method_option :no_ssl, :type => :boolean, :aliases => %w[--no-https], :desc => ""
165
167
  def setup
166
168
  @io.hello
167
169
  @create.new(options.dup.merge(:bare => true)).execute
@@ -60,6 +60,7 @@ module ThemeJuice
60
60
  @project.wp_config_modify = @opts.fetch("wp_config_modify") { false }
61
61
  @project.no_config = @opts.fetch("no_config") { false }
62
62
  @project.no_provision = @opts.fetch("no_provision") { false }
63
+ @project.no_ssl = @opts.fetch("no_ssl") { false }
63
64
  @project.no_env = @opts.fetch("no_env") { @project.wp_config_modify }
64
65
  @project.name = @opts.fetch("name") { name }
65
66
  @project.location = @opts.fetch("location") { location }
@@ -1,7 +1,7 @@
1
- .\" generated with Ronn/v0.7.0
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.0
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ" "1" "December 2015" "" "Theme Juice Manual"
4
+ .TH "TJ" "1" "January 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\fR \- WordPress development made easy
@@ -28,7 +28,7 @@ Force IP address of VM*
28
28
  Force directory prefix for project in VM*
29
29
  .
30
30
  .TP
31
- \fB\-\-yolo\fR
31
+ \fB\-\-yolo\fR, \fB\-\-yes\fR
32
32
  Say yes to anything and everything, and maybe even get a few surprises
33
33
  .
34
34
  .TP
@@ -48,6 +48,10 @@ Prints all output without color
48
48
  Prints all output without animations**
49
49
  .
50
50
  .TP
51
+ \fB\-\-robot\fR
52
+ Prints all output with absolutely no formatting
53
+ .
54
+ .TP
51
55
  \fB\-\-no\-landrush\fR
52
56
  Disable the landrush(1) gem for managing DNS*
53
57
  .
@@ -111,6 +115,10 @@ Deploy and manage a project
111
115
  Print the current version
112
116
  .
113
117
  .TP
118
+ \fBenv\fR, \fB\-\-env\fR=[\fIproperty\fR]
119
+ Print environment properties
120
+ .
121
+ .TP
114
122
  \fBlist\fR, \fBls\fR, \fBprojects\fR, \fBapps\fR, \fBsites\fR
115
123
  List all projects
116
124
  .
@@ -1,7 +1,7 @@
1
- .\" generated with Ronn/v0.7.0
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.0
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ\-CREATE" "1" "December 2015" "" "Theme Juice Manual"
4
+ .TH "TJ\-CREATE" "1" "April 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-create\fR \- Create a new project
@@ -91,6 +91,30 @@ Skip all prompts and use default settings
91
91
  Project is not a wordpress(7) install
92
92
  .
93
93
  .TP
94
+ \fB\-\-no\-wp\-cli\fR, \fB\-\-no\-wp\-cli\-config\fR
95
+ Skip creating the local wp\-cli(1) config file
96
+ .
97
+ .TP
94
98
  \fB\-\-no\-db\fR
95
99
  Project does not need a database
100
+ .
101
+ .TP
102
+ \fB\-\-no\-env\fR
103
+ Project does not need a \fB\.env\fR file
104
+ .
105
+ .TP
106
+ \fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
107
+ Do not provision VM after create(1)
108
+ .
109
+ .TP
110
+ \fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
111
+ Project does not have a Juicefile(5) config
112
+ .
113
+ .TP
114
+ \fB\-\-modify\-wp\-config\fR, \fB\-\-wp\-config\-modify\fR
115
+ Modify \fBwp\-config\.php\fR file contents with project configuration (this flag automatically disables the \fB\.env\fR file when used)
116
+ .
117
+ .TP
118
+ \fB\-\-no\-ssl\fR, \fB\-\-no\-https\fR
119
+ Project does not need SSL support
96
120
 
@@ -73,10 +73,29 @@ GLOBAL OPTIONS
73
73
  --no-wp
74
74
  Project is not a wordpress(7) install
75
75
 
76
+ --no-wp-cli, --no-wp-cli-config
77
+ Skip creating the local wp-cli(1) config file
78
+
76
79
  --no-db
77
80
  Project does not need a database
78
81
 
82
+ --no-env
83
+ Project does not need a .env file
84
+
85
+ --no-provision, --no-restart
86
+ Do not provision VM after create(1)
87
+
88
+ --no-config, --no-juicefile
89
+ Project does not have a Juicefile(5) config
90
+
91
+ --modify-wp-config, --wp-config-modify
92
+ Modify wp-config.php file contents with project configuration
93
+ (this flag automatically disables the .env file when used)
94
+
95
+ --no-ssl, --no-https
96
+ Project does not need SSL support
97
+
79
98
 
80
99
 
81
100
 
82
- December 2015 TJ-CREATE(1)
101
+ April 2016 TJ-CREATE(1)
@@ -1,5 +1,5 @@
1
- .\" generated with Ronn/v0.7.0
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.0
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
4
  .TH "TJ\-DELETE" "1" "December 2015" "" "Theme Juice Manual"
5
5
  .
@@ -1,7 +1,7 @@
1
- .\" generated with Ronn/v0.7.0
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.0
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ\-DEPLOY" "1" "December 2015" "" "Theme Juice Manual"
4
+ .TH "TJ\-DEPLOY" "1" "January 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-deploy\fR \- Deploy a project
@@ -12,6 +12,9 @@
12
12
  .SH "DESCRIPTION"
13
13
  Deploys a project to the passed \fBstage\fR\. All commands are transformed and then piped directly to capistrano(1) to handle deployment\.
14
14
  .
15
+ .SH "REQUIREMENTS"
16
+ The \fBremote\fR that is being deployed to needs to have wp\-cli(1) installed in order for tj(1) to be able to handle database migration\.
17
+ .
15
18
  .SH "SETUP"
16
19
  Follow these steps to quickly get up and running:
17
20
  .
@@ -19,7 +22,7 @@ Follow these steps to quickly get up and running:
19
22
  Create a \fBdeploy\fR user on the \fBstage\fR server
20
23
  .
21
24
  .IP "2." 4
22
- Create SSH keys for the new \fBdeploy\fR user
25
+ Set up SSH keys for the new \fBdeploy\fR user to SSH in without a password
23
26
  .
24
27
  .IP "3." 4
25
28
  Confirm the \fBdeploy\fR user owns the deploy path
@@ -35,6 +38,10 @@ Deploy!
35
38
  .SH "GLOBAL OPTIONS"
36
39
  .
37
40
  .TP
41
+ \fB\-b\fR, \fB\-\-branch\fR=\fIbranch\fR
42
+ Use an alternate git(1) branch for current deployment
43
+ .
44
+ .TP
38
45
  \fB\-\-archive\fR, \fB\-\-tar\fR, \fB\-\-gzip\fR, \fB\-\-zip\fR
39
46
  Archive directories with tar(1) when performing file transfers
40
47
  .
@@ -12,12 +12,17 @@ DESCRIPTION
12
12
  Deploys a project to the passed stage. All commands are transformed and
13
13
  then piped directly to capistrano(1) to handle deployment.
14
14
 
15
+ REQUIREMENTS
16
+ The remote that is being deployed to needs to have wp-cli(1) installed
17
+ in order for tj(1) to be able to handle database migration.
18
+
15
19
  SETUP
16
20
  Follow these steps to quickly get up and running:
17
21
 
18
22
  1. Create a deploy user on the stage server
19
23
 
20
- 2. Create SSH keys for the new deploy user
24
+ 2. Set up SSH keys for the new deploy user to SSH in without a pass-
25
+ word
21
26
 
22
27
  3. Confirm the deploy user owns the deploy path
23
28
 
@@ -28,6 +33,9 @@ SETUP
28
33
 
29
34
 
30
35
  GLOBAL OPTIONS
36
+ -b, --branch=branch
37
+ Use an alternate git(1) branch for current deployment
38
+
31
39
  --archive, --tar, --gzip, --zip
32
40
  Archive directories with tar(1) when performing file transfers
33
41
 
@@ -177,4 +185,4 @@ CONFIG FILE
177
185
 
178
186
 
179
187
 
180
- December 2015 TJ-DEPLOY(1)
188
+ January 2016 TJ-DEPLOY(1)
@@ -1,7 +1,7 @@
1
- .\" generated with Ronn/v0.7.0
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.0
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ\-SETUP" "1" "December 2015" "" "Theme Juice Manual"
4
+ .TH "TJ\-SETUP" "1" "April 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-setup\fR \- Setup an existing project
@@ -51,6 +51,30 @@ Skip all prompts and use default settings
51
51
  Project is not a wordpress(7) install
52
52
  .
53
53
  .TP
54
+ \fB\-\-no\-wp\-cli\fR, \fB\-\-no\-wp\-cli\-config\fR
55
+ Skip creating the local wp\-cli(1) config file
56
+ .
57
+ .TP
54
58
  \fB\-\-no\-db\fR
55
59
  Project does not need a database
60
+ .
61
+ .TP
62
+ \fB\-\-no\-env\fR
63
+ Project does not need a \fB\.env\fR file
64
+ .
65
+ .TP
66
+ \fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
67
+ Do not provision VM after setup(1)
68
+ .
69
+ .TP
70
+ \fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
71
+ Project does not have a Juicefile(5) config
72
+ .
73
+ .TP
74
+ \fB\-\-modify\-wp\-config\fR, \fB\-\-wp\-config\-modify\fR
75
+ Modify \fBwp\-config\.php\fR file contents with project configuration (this flag automatically disables the \fB\.env\fR file when used)
76
+ .
77
+ .TP
78
+ \fB\-\-no\-ssl\fR, \fB\-\-no\-https\fR
79
+ Project does not need SSL support
56
80
 
@@ -41,10 +41,29 @@ GLOBAL OPTIONS
41
41
  --no-wp
42
42
  Project is not a wordpress(7) install
43
43
 
44
+ --no-wp-cli, --no-wp-cli-config
45
+ Skip creating the local wp-cli(1) config file
46
+
44
47
  --no-db
45
48
  Project does not need a database
46
49
 
50
+ --no-env
51
+ Project does not need a .env file
52
+
53
+ --no-provision, --no-restart
54
+ Do not provision VM after setup(1)
55
+
56
+ --no-config, --no-juicefile
57
+ Project does not have a Juicefile(5) config
58
+
59
+ --modify-wp-config, --wp-config-modify
60
+ Modify wp-config.php file contents with project configuration
61
+ (this flag automatically disables the .env file when used)
62
+
63
+ --no-ssl, --no-https
64
+ Project does not need SSL support
65
+
47
66
 
48
67
 
49
68
 
50
- December 2015 TJ-SETUP(1)
69
+ April 2016 TJ-SETUP(1)
@@ -21,7 +21,8 @@ GLOBAL OPTIONS
21
21
  --vm-prefix=string
22
22
  Force directory prefix for project in VM*
23
23
 
24
- --yolo Say yes to anything and everything, and maybe even get a few
24
+ --yolo, --yes
25
+ Say yes to anything and everything, and maybe even get a few
25
26
  surprises
26
27
 
27
28
  --boring
@@ -36,6 +37,9 @@ GLOBAL OPTIONS
36
37
  --no-animations
37
38
  Prints all output without animations**
38
39
 
40
+ --robot
41
+ Prints all output with absolutely no formatting
42
+
39
43
  --no-landrush
40
44
  Disable the landrush(1) gem for managing DNS*
41
45
 
@@ -84,6 +88,9 @@ SECONDARY COMMANDS
84
88
  version, --version, -v
85
89
  Print the current version
86
90
 
91
+ env, --env=[property]
92
+ Print environment properties
93
+
87
94
  list, ls, projects, apps, sites
88
95
  List all projects
89
96
 
@@ -231,4 +238,4 @@ ENVIRONMENT
231
238
 
232
239
 
233
240
 
234
- December 2015 TJ(1)
241
+ January 2016 TJ(1)
@@ -29,6 +29,7 @@ module ThemeJuice
29
29
  attr_accessor :no_db
30
30
  attr_accessor :no_env
31
31
  attr_accessor :no_provision
32
+ attr_accessor :no_ssl
32
33
  attr_accessor :no_config
33
34
  attr_accessor :wp_config_modify
34
35
 
@@ -28,7 +28,7 @@ module ThemeJuice
28
28
 
29
29
  def create_apache_file
30
30
  return if apache_is_setup?
31
-
31
+
32
32
  @io.log "Creating apache conf file"
33
33
  @util.create_file apache_file, { :verbose => @env.verbose,
34
34
  :capture => @env.quiet } do
@@ -38,6 +38,7 @@ module ThemeJuice
38
38
  ServerAlias *.#{@project.url} #{@project.xip_url}.*.xip.io *.#{@project.xip_url}.*.xip.io
39
39
  </VirtualHost>
40
40
 
41
+ #{ssl_configuration}
41
42
  }
42
43
  end
43
44
  end
@@ -47,6 +48,19 @@ module ThemeJuice
47
48
  @util.remove_file apache_file, { :verbose => @env.verbose,
48
49
  :capture => @env.quiet }
49
50
  end
51
+
52
+ def ssl_configuration
53
+ return if @project.no_ssl
54
+ %Q{<VirtualHost *:443>
55
+ DocumentRoot #{@project.vm_srv}
56
+ ServerName #{@project.url}
57
+ SSLEngine on
58
+ SSLCertificateFile "/etc/ssl/certs/#{@project.url}.pem"
59
+ SSLCertificateKeyFile "/etc/ssl/private/#{@project.url}.key"
60
+ </VirtualHost>
61
+
62
+ }
63
+ end
50
64
  end
51
65
  end
52
66
  end
@@ -28,17 +28,16 @@ module ThemeJuice
28
28
 
29
29
  def create_nginx_file
30
30
  return if nginx_is_setup?
31
-
31
+
32
32
  @io.log "Creating nginx conf file"
33
33
  @util.create_file nginx_file, { :verbose => @env.verbose,
34
34
  :capture => @env.quiet } do
35
35
  %Q(server {
36
36
  listen 80;
37
- listen 443 ssl;
38
37
  server_name .#{@project.url} ~(^|^[a-z0-9.-]*\\.)#{@project.xip_url}\\.\\d+\\.\\d+\\.\\d+\\.\\d+\\.xip\\.io$;
39
38
  root #{@project.vm_srv};
40
39
  include /etc/nginx/nginx-wp-common.conf;
41
- }
40
+ #{ssl_configuration}}
42
41
 
43
42
  )
44
43
  end
@@ -49,6 +48,15 @@ module ThemeJuice
49
48
  @util.remove_file nginx_file, { :verbose => @env.verbose,
50
49
  :capture => @env.quiet }
51
50
  end
51
+
52
+ def ssl_configuration
53
+ return if @project.no_ssl
54
+ %Q{
55
+ listen 443 ssl;
56
+ ssl_certificate {vvv_path_to_folder}/ssl/#{@project.url}.cert;
57
+ ssl_certificate_key {vvv_path_to_folder}/ssl/#{@project.url}.key;
58
+ }
59
+ end
52
60
  end
53
61
  end
54
62
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.21.1"
4
+ VERSION = "0.22.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.21.1
4
+ version: 0.22.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-04-03 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.2.2
235
+ rubygems_version: 2.4.8
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: WordPress development made easy