theme-juice 0.19.2 → 0.19.3

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: 29d44653d28da543e5b40013e9f8e5b442fddf38
4
- data.tar.gz: 8e5dce57a8703827cfed9a56353b604e21a4c4d8
3
+ metadata.gz: 5f48149c540dd7b3d8b8542c58dc42b37b4399ce
4
+ data.tar.gz: 430eb78600a1810cdaf15a0685871b9dd71ec91d
5
5
  SHA512:
6
- metadata.gz: 295cba8caa8aa4c8a1aa88049d07d46728af6a9a0e00e09daab15379b09cb527ec9f4b25d0ce8a98cac79f9104612f0b324e67c53b3faa26c28b680e7b6aa050
7
- data.tar.gz: 08f234c0efa685e4b04a0adfd5c53f82de65749bff35aee5e3f8360d6f324cbade9cd253c648f52e8ffb8f2c5592c9e0cf34aa059e422e4529d17ede237593d1
6
+ metadata.gz: 3ef0403b26e7007b5cb1b8e0c26dd340495767d803deaf8a0702ae1c12d6b044391b166e35ff739983a7068117306f10d3123b8c832db1e6d2ea663c50a1e2a8
7
+ data.tar.gz: d4e62b8515be484afe68b6d162f1dfe22b8a4faaaf8a3dad5a0c540275b2a85bb1195ef824ae9a801b868ac921e390b3e3c752ef1cff5866f121bd9d93f0d216
@@ -97,15 +97,19 @@ module ThemeJuice
97
97
  @io.say @version, :color => :green
98
98
  end
99
99
 
100
- desc "--env", "Print an environment property"
101
- method_option :property, :type => :string, :aliases => %w[-p --prop], :required => true, :desc => ""
100
+ desc "--env [PROP]", "Print an environment property"
101
+ method_option :property, :type => :string, :aliases => %w[-p --prop], :default => nil, :desc => ""
102
102
  def env
103
- prop = options[:property].gsub "-", "_"
103
+ if options[:property].nil?
104
+ @io.list "Environment:", :green, @env.inspect
105
+ else
106
+ prop = options[:property].gsub "-", "_"
104
107
 
105
- @io.error "Environment property '#{prop}' does not exist",
108
+ @io.error "Environment property '#{prop}' does not exist",
106
109
  NotImplementedError unless @env.respond_to? prop
107
110
 
108
- @io.say @env.send(prop), :color => :green
111
+ @io.say @env.send(prop), :color => :green
112
+ end
109
113
  end
110
114
 
111
115
  desc "init", "Initialize the VM"
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "TJ" "1" "December 2015" "" "Theme Juice Manual"
4
+ .TH "TJ" "1" "January 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\fR \- WordPress development made easy
@@ -115,8 +115,8 @@ Deploy and manage a project
115
115
  Print the current version
116
116
  .
117
117
  .TP
118
- \fBenv\fR, \fB\-\-env\fR=\fIproperty\fR
119
- Print an environment property
118
+ \fBenv\fR, \fB\-\-env\fR=[\fIproperty\fR]
119
+ Print environment properties
120
120
  .
121
121
  .TP
122
122
  \fBlist\fR, \fBls\fR, \fBprojects\fR, \fBapps\fR, \fBsites\fR
@@ -88,8 +88,8 @@ SECONDARY COMMANDS
88
88
  version, --version, -v
89
89
  Print the current version
90
90
 
91
- env, --env=property
92
- Print an environment property
91
+ env, --env=[property]
92
+ Print environment properties
93
93
 
94
94
  list, ls, projects, apps, sites
95
95
  List all projects
@@ -238,4 +238,4 @@ ENVIRONMENT
238
238
 
239
239
 
240
240
 
241
- December 2015 TJ(1)
241
+ January 2016 TJ(1)
@@ -14,7 +14,7 @@ module ThemeJuice
14
14
  end
15
15
 
16
16
  private
17
-
17
+
18
18
  def is_user_a_smarty_pants?
19
19
  if @env.yolo && @project.use_defaults
20
20
  @io.say "Well, don't you just have everything all figured out?", {
@@ -23,8 +23,8 @@ module ThemeJuice
23
23
  end
24
24
 
25
25
  def confirm
26
- @io.list "Your settings :", :yellow, settings
27
-
26
+ @io.list "Your settings:", :yellow, settings
27
+
28
28
  unless @io.agree? "Do these settings look correct?"
29
29
  @io.error "Dang typos..."
30
30
  end
@@ -16,7 +16,7 @@ module ThemeJuice
16
16
 
17
17
  def success
18
18
  @io.success "Successfully created project '#{@project.name}'"
19
- @io.list "Your settings :", :blue, settings
19
+ @io.list "Your settings:", :blue, settings
20
20
  end
21
21
 
22
22
  def settings
@@ -14,11 +14,11 @@ module ThemeJuice
14
14
  end
15
15
 
16
16
  private
17
-
17
+
18
18
  def boom?
19
19
  if @env.yolo
20
- @io.say "Why in the world would you run this command with yolo? Anyways...", {
21
- :color => :yellow, :icon => :general }
20
+ @io.say "Livin' on the edge, huh?!", { :color => :yellow,
21
+ :icon => :general }
22
22
  end
23
23
  end
24
24
 
@@ -15,7 +15,7 @@ module ThemeJuice
15
15
  private
16
16
 
17
17
  def confirm
18
- @io.list "Your settings :", :yellow, @env.inspect
18
+ @io.list "Your settings:", :yellow, @env.inspect
19
19
 
20
20
  unless @io.agree? "Do these settings look correct?"
21
21
  @io.error "Well, dang. Maybe check out the various flags you can use."
@@ -16,7 +16,7 @@ module ThemeJuice
16
16
 
17
17
  def success
18
18
  @io.success "Successfully initialized VM"
19
- @io.list "Your settings :", :blue, @env.inspect
19
+ @io.list "Your settings:", :blue, @env.inspect
20
20
  end
21
21
  end
22
22
  end
@@ -14,7 +14,7 @@ module ThemeJuice
14
14
  if self.send(prop).empty?
15
15
  @io.log "Nothing to list"
16
16
  else
17
- @io.list "#{prop.capitalize} :", :green, self.send(prop)
17
+ @io.list "#{prop.capitalize}:", :green, self.send(prop)
18
18
  end
19
19
  end
20
20
 
@@ -23,7 +23,7 @@ module ThemeJuice
23
23
 
24
24
  Dir["#{@project.vm_root}/*"].each do |f|
25
25
  name = File.basename f
26
-
26
+
27
27
  if File.directory?(f) && name.include?(@env.vm_prefix)
28
28
  res << name.gsub(/(#{@env.vm_prefix})/, "")
29
29
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.19.2"
4
+ VERSION = "0.19.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor