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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47cfb1bd6b78a1ad40cef06b741e60a18fbb3d86
4
- data.tar.gz: 0f55c3a06d5b06531eef6b62c8ed52e182cc9621
3
+ metadata.gz: ff5a891c86d3b5da1c9c3a96ed1bb8ebcafdc580
4
+ data.tar.gz: a12a7542374c4bf1f88e0ccd9eb25301dd42fbfc
5
5
  SHA512:
6
- metadata.gz: dca54558fe02ceb234995e3e2f160c4f5045425ad18564abc06e0f4d535fb5b769e95834caacf430c147b28237e074527833811eb160545cd6a7d36cca0b8048
7
- data.tar.gz: 567627416d854968ad33a8fae4c9e810980ef55f5fdb7ba3f42153967377f1ca681fb638df108c66afd484f7a593daf7cb37630d77f9d9170abe15fa4ec20c9b
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
@@ -109,32 +109,39 @@ module ThemeJuice
109
109
  end
110
110
 
111
111
  if setup_was_successful?
112
- say "Restarting VVV...", :yellow
113
-
114
- if restart_vagrant
115
-
116
- # Get smiley ASCII art
117
- smiley = File.read(File.expand_path("../ascii/smiley.txt", __FILE__))
118
-
119
- # Output welcome message
120
- say "\n"
121
- say smiley, :yellow
122
- say "\n"
123
- say "Success!".center(48), :green
124
- say "\n\n"
125
-
126
- # Output setup info
127
- say "Here's your installation info:", :yellow
128
- say "---> Site name: #{@opts[:site_name]}", :blue
129
- say "---> Site location: #{@opts[:site_location]}", :blue
130
- say "---> Starter theme: #{@opts[:starter_theme]}", :blue
131
- say "---> Development location: #{@opts[:dev_location]}", :blue
132
- say "---> Development url: http://#{@opts[:dev_url]}", :blue
133
- say "---> Initialized repository: #{@opts[:repository]}", :blue
134
- say "---> Database host: #{@opts[:db_host]}", :blue
135
- say "---> Database name: #{@opts[:db_name]}", :blue
136
- say "---> Database username: #{@opts[:db_user]}", :blue
137
- say "---> Database password: #{@opts[:db_pass]}", :blue
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
@@ -1,3 +1,3 @@
1
1
  module ThemeJuice
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse