theme-juice 0.6.9 → 0.6.10
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/lib/theme-juice/cli.rb +17 -17
- 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: 7c160c7c794b1bf475412412e3b783f2428816bd
|
4
|
+
data.tar.gz: d984689f96c3f1b2d8751567dccb8c297c3a9383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2c4514ca2fdce7bbaf8adc2f911c25373b4cc5c20657e4737dab9c577a64ee0dd51194f75649be246700f87429473a8a20c0c9466e3b98b2bc0b0160664734
|
7
|
+
data.tar.gz: f9d934b13dc6c84901daffb65de9e8acf1df8f462df455f348514d21f1928d5af9723cdf537584e0f0423f73c49d4bd0bf9d8a9b245b5a2551c5e12e8d72b244
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -20,8 +20,8 @@ module ThemeJuice
|
|
20
20
|
# Class options
|
21
21
|
#
|
22
22
|
class_option :vvv_path, :type => :string, :default => nil, :desc => "Force path to VVV installation"
|
23
|
-
class_option :yolo, :type => :boolean,
|
24
|
-
class_option :boring, :type => :boolean,
|
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
25
|
class_option :no_unicode, :type => :boolean, :desc => "Disable all unicode characters"
|
26
26
|
class_option :no_colors, :type => :boolean, :desc => "Disable all colored output"
|
27
27
|
class_option :no_animations, :type => :boolean, :desc => "Disable all animations"
|
@@ -40,9 +40,9 @@ module ThemeJuice
|
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
|
-
desc "create", "Create new site and setup VVV environment"
|
43
|
+
desc "create [NAME]", "Create new site and setup VVV environment"
|
44
44
|
method_option :bare, :type => :boolean, :aliases => "-b", :desc => "Create a VVV site without a starter theme"
|
45
|
-
method_option :
|
45
|
+
method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
|
46
46
|
method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
|
47
47
|
method_option :theme, :type => :string, :aliases => "-t", :default => false, :desc => "Starter theme to install"
|
48
48
|
method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
|
@@ -53,18 +53,18 @@ module ThemeJuice
|
|
53
53
|
#
|
54
54
|
# Install and setup VVV environment with new site
|
55
55
|
#
|
56
|
-
# @param {String}
|
56
|
+
# @param {String} name (nil)
|
57
57
|
# Name of the site to create
|
58
58
|
#
|
59
59
|
# @return {Void}
|
60
60
|
#
|
61
|
-
def create(
|
61
|
+
def create(name = nil)
|
62
62
|
self.set_environment
|
63
63
|
@interaction.hello
|
64
64
|
|
65
65
|
opts = {
|
66
66
|
:site_bare => options[:bare],
|
67
|
-
:site_name =>
|
67
|
+
:site_name => name || options[:name],
|
68
68
|
:site_location => options[:location],
|
69
69
|
:site_starter_theme => options[:theme],
|
70
70
|
:site_dev_location => nil,
|
@@ -78,8 +78,8 @@ module ThemeJuice
|
|
78
78
|
@create.new(opts)
|
79
79
|
end
|
80
80
|
|
81
|
-
desc "setup [
|
82
|
-
method_option :
|
81
|
+
desc "setup [NAME]", "Setup an existing site within the development environment"
|
82
|
+
method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
|
83
83
|
method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
|
84
84
|
method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
|
85
85
|
method_option :repository, :type => :string, :aliases => "-r", :desc => "Initialize a new Git remote repository"
|
@@ -89,18 +89,18 @@ module ThemeJuice
|
|
89
89
|
#
|
90
90
|
# Setup an existing WordPress install in VVV
|
91
91
|
#
|
92
|
-
# @param {String}
|
92
|
+
# @param {String} name (nil)
|
93
93
|
# Name of the site to setup
|
94
94
|
#
|
95
95
|
# @return {Void}
|
96
96
|
#
|
97
|
-
def setup(
|
97
|
+
def setup(name = nil)
|
98
98
|
self.set_environment
|
99
99
|
@interaction.hello
|
100
100
|
|
101
101
|
opts = {
|
102
102
|
:site_bare => true,
|
103
|
-
:site_name =>
|
103
|
+
:site_name => name || options[:name],
|
104
104
|
:site_location => options[:location],
|
105
105
|
:site_starter_theme => false,
|
106
106
|
:site_dev_location => nil,
|
@@ -114,23 +114,23 @@ module ThemeJuice
|
|
114
114
|
@create.new(opts)
|
115
115
|
end
|
116
116
|
|
117
|
-
desc "delete
|
118
|
-
method_option :
|
117
|
+
desc "delete [NAME]", "Remove site from the VVV development environment (does not remove local site)"
|
118
|
+
method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
|
119
119
|
method_option :restart, :type => :boolean, :aliases => "-r", :desc => "Restart development environment after SITE deletion"
|
120
120
|
#
|
121
121
|
# Remove all traces of site from Vagrant
|
122
122
|
#
|
123
|
-
# @param {String}
|
123
|
+
# @param {String} name (nil)
|
124
124
|
# Site to delete. This will not delete your local files, only
|
125
125
|
# files within the VVV environment.
|
126
126
|
#
|
127
127
|
# @return {Void}
|
128
128
|
#
|
129
|
-
def delete(
|
129
|
+
def delete(name = nil)
|
130
130
|
self.set_environment
|
131
131
|
|
132
132
|
opts = {
|
133
|
-
:site_name =>
|
133
|
+
:site_name => name || options[:name],
|
134
134
|
:site_dev_location => nil,
|
135
135
|
:restart => options[:restart]
|
136
136
|
}
|
data/lib/theme-juice/version.rb
CHANGED