theme-juice 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/theme-juice/cli.rb +10 -8
- data/lib/theme-juice/services/create_site.rb +6 -2
- data/lib/theme-juice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b9ed39674da3977f875fb7f4ddff9a3dd537645
|
4
|
+
data.tar.gz: 64e925de8a95f6839697dbb3779841eed7e6b16d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 155167279305d28ac324e41009a3c3c2fd78dac202d5a565059451de7fcc9bb087cdd0f88c88346bfe42aa8cd62631b46bd806c9c69b8097c5de27a332a7d1b2
|
7
|
+
data.tar.gz: 9f958bf5da40bc04398b666001cd299fcdaed326e4977cac5b7213a8bdcc42d8b7f56e5148514c19504b6c1d6c545eea78c83e4f7ae6484bcf08ee9783043046
|
data/README.md
CHANGED
@@ -39,19 +39,19 @@ List all commands for `tj`.
|
|
39
39
|
tj
|
40
40
|
```
|
41
41
|
|
42
|
-
#### Global flags:
|
43
|
-
| Flag | Type | Description |
|
44
|
-
|:-------------------------|:------ |:------------------------------------------ |
|
45
|
-
| `-nu, [--no-unicode]` | Bool | Disable all unicode characters |
|
46
|
-
| `-nc, [--no-colors]` | Bool | Disable colored output |
|
47
|
-
| `-fp, [--vvv-path=PATH]` | String | Force custom path to your VVV installation |
|
48
|
-
|
49
42
|
### Print version:
|
50
43
|
This command will print the current version of `tj`.
|
51
44
|
```bash
|
52
45
|
tj --version # Aliases: -v, version
|
53
46
|
```
|
54
47
|
|
48
|
+
### Global flags:
|
49
|
+
| Flag | Type | Description |
|
50
|
+
|:--------------------|:------ |:------------------------------------------ |
|
51
|
+
| `[--no-unicode]` | Bool | Disable all unicode characters |
|
52
|
+
| `[--no-colors]` | Bool | Disable colored output |
|
53
|
+
| `[--vvv-path=PATH]` | String | Force custom path to your VVV installation |
|
54
|
+
|
55
55
|
### Creating a new development site:
|
56
56
|
Use this to create a new development site. It will automagically set up your entire development environment, including a local development site at `http://<sites-dev-url>.dev` with WordPress installed and a fresh WP database. It will sync up your local site installation with the Vagrant VM. This task will also install and configure Vagrant/VVV into your `~/` directory if it has not already been installed. Site name is optional, as it will be asked for if not given.
|
57
57
|
```bash
|
@@ -74,7 +74,7 @@ tj create [<SITE-NAME>] # Aliases: new, add, build, make
|
|
74
74
|
### Setting up an existing site:
|
75
75
|
Use this to setup an existing local site installation within the development environment. You will go through the setup process to create the necessary files for the VM, including `vvv-hosts`, `vvv-nginx.conf`, and a fresh database (unless one already exists by the name chosen). Site name is optional, as it will be asked for if not given.
|
76
76
|
```bash
|
77
|
-
tj setup [<SITE-NAME>] # Aliases:
|
77
|
+
tj setup [<SITE-NAME>] # Aliases: prep
|
78
78
|
```
|
79
79
|
|
80
80
|
### Deleting a site from the VM: _(Does not remove your local site)_
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -19,12 +19,12 @@ module ThemeJuice
|
|
19
19
|
#
|
20
20
|
# Class options
|
21
21
|
#
|
22
|
-
class_option :vvv_path, :type => :string, :
|
23
|
-
class_option :yolo, :type => :boolean,
|
24
|
-
class_option :boring, :type => :boolean,
|
25
|
-
class_option :no_unicode, :type => :boolean,
|
26
|
-
class_option :no_colors, :type => :boolean,
|
27
|
-
class_option :no_animations, :type => :boolean,
|
22
|
+
class_option :vvv_path, :type => :string, :default => nil, :desc => "Force path to VVV installation"
|
23
|
+
class_option :yolo, :type => :boolean, :desc => "Say yes to anything and everything"
|
24
|
+
class_option :boring, :type => :boolean, :desc => "Disable all the coolness"
|
25
|
+
class_option :no_unicode, :type => :boolean, :desc => "Disable all unicode characters"
|
26
|
+
class_option :no_colors, :type => :boolean, :desc => "Disable all colored output"
|
27
|
+
class_option :no_animations, :type => :boolean, :desc => "Disable all animations"
|
28
28
|
|
29
29
|
desc "--version, -v", "Print current version"
|
30
30
|
#
|
@@ -35,7 +35,9 @@ module ThemeJuice
|
|
35
35
|
def version
|
36
36
|
self.set_environment
|
37
37
|
|
38
|
-
@interaction.speak @version, {
|
38
|
+
@interaction.speak @version, {
|
39
|
+
:color => :green
|
40
|
+
}
|
39
41
|
end
|
40
42
|
|
41
43
|
desc "create", "Create new site and setup VVV environment"
|
@@ -99,7 +101,7 @@ module ThemeJuice
|
|
99
101
|
opts = {
|
100
102
|
:site_bare => true,
|
101
103
|
:site_name => site || options[:site],
|
102
|
-
:site_location =>
|
104
|
+
:site_location => options[:location],
|
103
105
|
:site_starter_theme => false,
|
104
106
|
:site_dev_location => nil,
|
105
107
|
:site_dev_url => options[:url],
|
@@ -277,10 +277,14 @@ module ThemeJuice
|
|
277
277
|
|
278
278
|
run [
|
279
279
|
"cd #{@opts[:site_location]}",
|
280
|
-
"git clone --depth 1 #{@opts[:
|
280
|
+
"git clone --depth 1 #{@opts[:site_starter_theme]} .",
|
281
281
|
]
|
282
282
|
|
283
|
-
|
283
|
+
if wordpress_is_setup?
|
284
|
+
install_theme_dependencies unless config_is_setup?
|
285
|
+
else
|
286
|
+
@interaction.error "Could not setup WordPress. Make sure you have write capabilities to '#{@opts[:site_location]}'."
|
287
|
+
end
|
284
288
|
end
|
285
289
|
end
|
286
290
|
|
data/lib/theme-juice/version.rb
CHANGED