theme-juice 0.18.7 → 0.18.8
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 +13 -1
- data/lib/theme-juice/io.rb +2 -0
- data/lib/theme-juice/man/tj +9 -1
- data/lib/theme-juice/man/tj.txt +8 -1
- 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: 1c59188ebf84f3e3432720b1d49a820bdcb00304
|
|
4
|
+
data.tar.gz: 38735743688d79422dfe6a4f8495683f14591f9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 869a755300d98e7e241e2074eb238f8006d7a9990332aab6c1a41c4af2a23fe2dae66454fd3dbf89ddcfa3fe74bf1d5431b2b3f710582d21ccc641e776a60626
|
|
7
|
+
data.tar.gz: 32e13868a0e0fe1cbfda6a9fcb4e3c335becf35e8c673a6284f0f834058b41112b865c8b49bbcd3cbd381d524427442df90df27d78e1c73fadb2a1361ae62f1c
|
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ The [Theme Juice CLI](http://themejuice.it), also known as `tj`, helps you creat
|
|
|
13
13
|
Check out [our getting started guide over at SitePoint](http://www.sitepoint.com/introducing-theme-juice-for-local-wordpress-development/), or [view the documentation site](http://themejuice.it).
|
|
14
14
|
|
|
15
15
|
## What problems does `tj` help solve?
|
|
16
|
-
To get the most out of `tj`, it is recommended that you use our [starter template](https://github.com/ezekg/theme-juice-starter). Why? Keep on reading and we'll tell you. `tj` is built on top of tried and true open source libraries such as [Capistrano](http://capistranorb.com/) for
|
|
16
|
+
To get the most out of `tj`, it is recommended that you use our [starter template](https://github.com/ezekg/theme-juice-starter). Why? Keep on reading and we'll tell you. `tj` is built on top of tried and true open source libraries such as [Capistrano](http://capistranorb.com/) for deployment, [Vagrant](https://www.vagrantup.com/) for local development, and even a little bit of [WP-CLI](http://wp-cli.org) for database migration. Some of the main pain points `tj` helps solve are:
|
|
17
17
|
|
|
18
18
|
### 1. Local development
|
|
19
19
|
Say goodbye to MAMP! With one command, `tj create`, you can have a new local development site up and running in under a minute. It uses a streamlined fork of VVV (listed above) to create a Vagrant development environment, and lets you create and manage multiple projects within a single virtual machine. It also handles deployments over SSH using Capistrano if you want to move away from FTP (more about that below).
|
|
@@ -24,7 +24,7 @@ Oh, multi-environment development! Usually, you would have to ignore your entire
|
|
|
24
24
|
Our [starter template](https://github.com/ezekg/theme-juice-starter) uses a `.env` file, and has support for an unlimited number of environments (we generally do `development`, `staging` and `production`). Since these settings are housed in a `.env` file, they are not checked into the repo. That means the codebase is 100% environment agnostic. [The way it should be.](http://12factor.net/)
|
|
25
25
|
|
|
26
26
|
### 3. Multi-environment deployments
|
|
27
|
-
Really. Want to deploy to staging? Set up a staging environment inside of the [`Juicefile`](https://github.com/ezekg/theme-juice-starter/blob/master/Juicefile?ts=2), make sure you can SSH in without a password (remember, best practices here!) and run `tj deploy staging`. Boom, you're done. Make a mistake? Run `tj
|
|
27
|
+
Really. Want to deploy to staging? Set up a staging environment inside of the [`Juicefile`](https://github.com/ezekg/theme-juice-starter/blob/master/Juicefile?ts=2), make sure you can SSH in without a password (remember, best practices here!) and run `tj deploy staging`. Boom, you're done. Make a mistake? Run `tj remote staging rollback`. Crisis averted!
|
|
28
28
|
|
|
29
29
|
Want to pull the database from your production server to your development install? Run `tj remote production db:pull` and you're good to go; `tj` will automatically handle rewriting any URLs within the database.
|
|
30
30
|
|
data/lib/theme-juice/cli.rb
CHANGED
|
@@ -45,6 +45,7 @@ module ThemeJuice
|
|
|
45
45
|
|
|
46
46
|
map %w[man doc docs] => :help
|
|
47
47
|
map %w[--version -v] => :version
|
|
48
|
+
map %w[--env] => :env
|
|
48
49
|
map %w[mk new] => :create
|
|
49
50
|
map %w[up] => :init
|
|
50
51
|
map %w[rm remove trash] => :delete
|
|
@@ -56,7 +57,7 @@ module ThemeJuice
|
|
|
56
57
|
class_option :vm_path, :type => :string, :default => nil, :desc => ""
|
|
57
58
|
class_option :vm_ip, :type => :string, :default => nil, :desc => ""
|
|
58
59
|
class_option :vm_prefix, :type => :string, :default => nil, :desc => ""
|
|
59
|
-
class_option :yolo, :type => :boolean,
|
|
60
|
+
class_option :yolo, :type => :boolean, :aliases => "--yes", :desc => ""
|
|
60
61
|
class_option :boring, :type => :boolean, :desc => ""
|
|
61
62
|
class_option :no_unicode, :type => :boolean, :desc => ""
|
|
62
63
|
class_option :no_colors, :type => :boolean, :aliases => "--no-color", :desc => ""
|
|
@@ -94,6 +95,17 @@ module ThemeJuice
|
|
|
94
95
|
@io.say @version, :color => :green
|
|
95
96
|
end
|
|
96
97
|
|
|
98
|
+
desc "--env", "Print an environment property"
|
|
99
|
+
method_option :property, :type => :string, :aliases => %w[-p --prop], :required => true, :desc => ""
|
|
100
|
+
def env
|
|
101
|
+
prop = options[:property].gsub "-", "_"
|
|
102
|
+
|
|
103
|
+
@io.error "Environment property '#{prop}' does not exist",
|
|
104
|
+
NotImplementedError unless @env.respond_to? prop
|
|
105
|
+
|
|
106
|
+
@io.say @env.send(prop), :color => :green
|
|
107
|
+
end
|
|
108
|
+
|
|
97
109
|
desc "init", "Initialize the VM"
|
|
98
110
|
def init
|
|
99
111
|
@io.say "Initializing the VM...", {
|
data/lib/theme-juice/io.rb
CHANGED
data/lib/theme-juice/man/tj
CHANGED
|
@@ -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 an environment property
|
|
120
|
+
.
|
|
121
|
+
.TP
|
|
114
122
|
\fBlist\fR, \fBls\fR, \fBprojects\fR, \fBapps\fR, \fBsites\fR
|
|
115
123
|
List all projects
|
|
116
124
|
.
|
data/lib/theme-juice/man/tj.txt
CHANGED
|
@@ -21,7 +21,8 @@ GLOBAL OPTIONS
|
|
|
21
21
|
--vm-prefix=string
|
|
22
22
|
Force directory prefix for project in VM*
|
|
23
23
|
|
|
24
|
-
--yolo
|
|
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 an environment property
|
|
93
|
+
|
|
87
94
|
list, ls, projects, apps, sites
|
|
88
95
|
List all projects
|
|
89
96
|
|
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.18.
|
|
4
|
+
version: 0.18.8
|
|
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-12-
|
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|