theme-juice 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/lib/theme-juice/executor.rb +33 -26
- 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: ff5a891c86d3b5da1c9c3a96ed1bb8ebcafdc580
|
4
|
+
data.tar.gz: a12a7542374c4bf1f88e0ccd9eb25301dd42fbfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87bd9d2a3c3981a2c181321adcaf359269b4245dd055273b2906ac127476fd0ff03abfca16295149f2f2509ca8bf26f7a6033392c6ff966a7a25869f0502426a
|
7
|
+
data.tar.gz: f9d0b95283f71c765a99035eaf337fb677933cf60e195e8b6b22197153fd7de661553126533e1a217b026fdc6c8d08483e59a640537cab8b56fbd674367f39ce
|
data/README.md
CHANGED
@@ -37,18 +37,17 @@ List all commands for `tj`.
|
|
37
37
|
tj
|
38
38
|
```
|
39
39
|
|
40
|
+
### Global flags:
|
41
|
+
| Flag | Type | Description |
|
42
|
+
|:--------------------------------------- |:------ |:------------------------------------------------ |
|
43
|
+
| `-fp, [--vvv-path=PATH]` | String | Force custom path to your VVV installation |
|
44
|
+
|
40
45
|
### Print version:
|
41
46
|
This command will print the current version of `tj`.
|
42
47
|
```bash
|
43
48
|
tj --version # Aliases: -v, version
|
44
49
|
```
|
45
50
|
|
46
|
-
### Setup VVV:
|
47
|
-
This command will _only_ setup [Varying Vagrant Vagrants](https://github.com/Varying-Vagrant-Vagrants/VVV). It will not prompt you to create a new site. _Note: This is automatically run when you create your first site._
|
48
|
-
```bash
|
49
|
-
tj init
|
50
|
-
```
|
51
|
-
|
52
51
|
### Creating a new development site:
|
53
52
|
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.
|
54
53
|
```bash
|
data/lib/theme-juice/executor.rb
CHANGED
@@ -109,32 +109,39 @@ module ThemeJuice
|
|
109
109
|
end
|
110
110
|
|
111
111
|
if setup_was_successful?
|
112
|
-
say "
|
113
|
-
|
114
|
-
if
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
112
|
+
say "Setup complete!", :green
|
113
|
+
|
114
|
+
if yes? "In order to finish creating your site, you need to provision Vagrant. Do it now? (y/N) :", :blue
|
115
|
+
say "Restarting VVV...", :yellow
|
116
|
+
|
117
|
+
if restart_vagrant
|
118
|
+
|
119
|
+
# Get smiley ASCII art
|
120
|
+
smiley = File.read(File.expand_path("../ascii/smiley.txt", __FILE__))
|
121
|
+
|
122
|
+
# Output welcome message
|
123
|
+
say "\n"
|
124
|
+
say smiley, :yellow
|
125
|
+
say "\n"
|
126
|
+
say "Success!".center(48), :green
|
127
|
+
say "\n\n"
|
128
|
+
|
129
|
+
# Output setup info
|
130
|
+
say "Here's your installation info:", :yellow
|
131
|
+
say "---> Site name: #{@opts[:site_name]}", :blue
|
132
|
+
say "---> Site location: #{@opts[:site_location]}", :blue
|
133
|
+
say "---> Starter theme: #{@opts[:starter_theme]}", :blue
|
134
|
+
say "---> Development location: #{@opts[:dev_location]}", :blue
|
135
|
+
say "---> Development url: http://#{@opts[:dev_url]}", :blue
|
136
|
+
say "---> Initialized repository: #{@opts[:repository]}", :blue
|
137
|
+
say "---> Database host: #{@opts[:db_host]}", :blue
|
138
|
+
say "---> Database name: #{@opts[:db_name]}", :blue
|
139
|
+
say "---> Database username: #{@opts[:db_user]}", :blue
|
140
|
+
say "---> Database password: #{@opts[:db_pass]}", :blue
|
141
|
+
end
|
142
|
+
else
|
143
|
+
say "Remember, Vagrant needs to be provisioned before you can use your new site. Exiting...", :yellow
|
144
|
+
exit
|
138
145
|
end
|
139
146
|
else
|
140
147
|
say "Setup failed. Running cleanup...", :red
|
data/lib/theme-juice/version.rb
CHANGED