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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0865f441405da7e41b4d99d7aa7797dac5795ac3
4
- data.tar.gz: 01e29364d8b39ff48c55a888d7e4e1ca102b03cf
3
+ metadata.gz: 7b9ed39674da3977f875fb7f4ddff9a3dd537645
4
+ data.tar.gz: 64e925de8a95f6839697dbb3779841eed7e6b16d
5
5
  SHA512:
6
- metadata.gz: b279e102a5cc249365ed795553c6fcfed1fe52842219dbd328b52192b274de6afcd63c61e3c850ffc5f4626ddaf03a4debb0c7fe4bd4ac908904c93ce9df9a92
7
- data.tar.gz: 4d2c5d2ea3d8888bbfd51eee6106caef589c645a84519bdd70d14e44e6ff04f435e89b17f85eaeceaa8c0c1e044bd8b126c1c949e75da16c1dcbc145a89c5e1f
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: init, prep
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)_
@@ -19,12 +19,12 @@ module ThemeJuice
19
19
  #
20
20
  # Class options
21
21
  #
22
- class_option :vvv_path, :type => :string, :aliases => "-fp", :default => nil, :desc => "Force path to VVV installation"
23
- class_option :yolo, :type => :boolean, :aliases => "-y", :desc => "Say yes to anything and everything"
24
- class_option :boring, :type => :boolean, :aliases => "-b", :desc => "Disable all the coolness"
25
- class_option :no_unicode, :type => :boolean, :aliases => "-nu", :desc => "Disable all unicode characters"
26
- class_option :no_colors, :type => :boolean, :aliases => "-nc", :desc => "Disable all colored output"
27
- class_option :no_animations, :type => :boolean, :aliases => "-na", :desc => "Disable all animations"
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, { color: :green }
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 => options[: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[:starter_theme]} .",
280
+ "git clone --depth 1 #{@opts[:site_starter_theme]} .",
281
281
  ]
282
282
 
283
- install_theme_dependencies unless config_is_setup?
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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.6.3"
4
+ VERSION = "0.6.4"
5
5
  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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse