theme-juice 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/theme-juice/cli.rb +22 -16
- 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: 4002e13353201f581d737bbf71246937664f868d
|
4
|
+
data.tar.gz: 03b7fed719df925ba6a8a3fd222d59686bf958d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2725dd63bc5d111ba01e8b8b0374b2d9bf354caa8c656d4020de74fafe57ae40a7212a4341056c45c8980106c09223ab1009cfc0958eafe9d9de84adcfb642
|
7
|
+
data.tar.gz: 5a2c59ebfa523bdded433e4324dd323f5c731486a1b52aa9d700b60d0cf5db9309e4cfef72de1f5968baad7360ac6cb9fdd32d09cd3939c92ef39b0d0e583988
|
data/lib/theme-juice/cli.rb
CHANGED
@@ -35,7 +35,7 @@ module ThemeJuice
|
|
35
35
|
def version
|
36
36
|
self.set_environment
|
37
37
|
|
38
|
-
@interaction.speak
|
38
|
+
@interaction.speak @version, { color: :green }
|
39
39
|
end
|
40
40
|
|
41
41
|
desc "create", "Create new site and setup VVV environment"
|
@@ -73,10 +73,17 @@ module ThemeJuice
|
|
73
73
|
:use_defaults => options[:use_defaults]
|
74
74
|
}
|
75
75
|
|
76
|
-
|
76
|
+
@create.new(opts)
|
77
77
|
end
|
78
78
|
|
79
79
|
desc "setup [SITE]", "Setup an existing SITE in development environment"
|
80
|
+
method_option :site, :type => :string, :aliases => "-s", :default => false, :desc => "Name of the development site"
|
81
|
+
method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
|
82
|
+
method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
|
83
|
+
method_option :repository, :type => :string, :aliases => "-r", :desc => "Initialize a new Git remote repository"
|
84
|
+
method_option :skip_repo, :type => :boolean, :desc => "Skip repository prompts and use defaults"
|
85
|
+
method_option :skip_db, :type => :boolean, :desc => "Skip database prompts and use defaults"
|
86
|
+
method_option :use_defaults, :type => :boolean, :desc => "Skip all prompts and use default settings"
|
80
87
|
#
|
81
88
|
# Setup an existing WordPress install in VVV
|
82
89
|
#
|
@@ -85,13 +92,6 @@ module ThemeJuice
|
|
85
92
|
#
|
86
93
|
# @return {Void}
|
87
94
|
#
|
88
|
-
method_option :site, :type => :string, :aliases => "-s", :default => false, :desc => "Name of the development site"
|
89
|
-
method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
|
90
|
-
method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
|
91
|
-
method_option :repository, :type => :string, :aliases => "-r", :desc => "Initialize a new Git remote repository"
|
92
|
-
method_option :skip_repo, :type => :boolean, :desc => "Skip repository prompts and use defaults"
|
93
|
-
method_option :skip_db, :type => :boolean, :desc => "Skip database prompts and use defaults"
|
94
|
-
method_option :use_defaults, :type => :boolean, :desc => "Skip all prompts and use default settings"
|
95
95
|
def setup(site = nil)
|
96
96
|
self.set_environment
|
97
97
|
@interaction.hello
|
@@ -109,7 +109,7 @@ module ThemeJuice
|
|
109
109
|
:use_defaults => options[:use_defaults]
|
110
110
|
}
|
111
111
|
|
112
|
-
|
112
|
+
@create.new(opts)
|
113
113
|
end
|
114
114
|
|
115
115
|
desc "delete SITE", "Remove SITE from the VVV development environment (does not remove local site)"
|
@@ -133,7 +133,7 @@ module ThemeJuice
|
|
133
133
|
:restart => options[:restart]
|
134
134
|
}
|
135
135
|
|
136
|
-
|
136
|
+
@delete.new(opts)
|
137
137
|
end
|
138
138
|
|
139
139
|
desc "list", "List all sites within the VVV development environment"
|
@@ -145,7 +145,7 @@ module ThemeJuice
|
|
145
145
|
def list
|
146
146
|
self.set_environment
|
147
147
|
|
148
|
-
|
148
|
+
@list.new
|
149
149
|
end
|
150
150
|
|
151
151
|
desc "install", "Run installation for the starter theme"
|
@@ -158,7 +158,7 @@ module ThemeJuice
|
|
158
158
|
def install
|
159
159
|
self.set_environment
|
160
160
|
|
161
|
-
|
161
|
+
@install.new
|
162
162
|
end
|
163
163
|
|
164
164
|
#
|
@@ -178,7 +178,7 @@ module ThemeJuice
|
|
178
178
|
:commands => commands.join(" ")
|
179
179
|
}
|
180
180
|
|
181
|
-
|
181
|
+
@subcommand.new(opts)
|
182
182
|
end
|
183
183
|
|
184
184
|
#
|
@@ -198,7 +198,7 @@ module ThemeJuice
|
|
198
198
|
:commands => commands.join(" ")
|
199
199
|
}
|
200
200
|
|
201
|
-
|
201
|
+
@subcommand.new(opts)
|
202
202
|
end
|
203
203
|
|
204
204
|
#
|
@@ -218,7 +218,7 @@ module ThemeJuice
|
|
218
218
|
:commands => commands.join(" ")
|
219
219
|
}
|
220
220
|
|
221
|
-
|
221
|
+
@subcommand.new(opts)
|
222
222
|
end
|
223
223
|
|
224
224
|
#
|
@@ -247,8 +247,14 @@ module ThemeJuice
|
|
247
247
|
# @return {Void}
|
248
248
|
#
|
249
249
|
def set_environment
|
250
|
+
@version = ::ThemeJuice::VERSION
|
250
251
|
@environment = ::ThemeJuice::Environment
|
251
252
|
@interaction = ::ThemeJuice::Interaction
|
253
|
+
@create = ::ThemeJuice::Command::Create
|
254
|
+
@delete = ::ThemeJuice::Command::Delete
|
255
|
+
@list = ::ThemeJuice::Command::List
|
256
|
+
@install = ::ThemeJuice::Command::Install
|
257
|
+
@subcommand = ::ThemeJuice::Command::Subcommand
|
252
258
|
|
253
259
|
@environment.no_colors = if self.boring? then true else options[:no_colors] end
|
254
260
|
@environment.no_unicode = if self.boring? then true else options[:no_unicode] end
|
data/lib/theme-juice/version.rb
CHANGED