theme-juice 0.22.0 → 0.23.0

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: 7bfa46032c7a427c200ed6c42301423ac9c4e7c2
4
- data.tar.gz: 38d98b4ec497bcd9e31cb113aca0804af7d91ed3
3
+ metadata.gz: 7d852238a2f118a976b83215d898bcbfd8f9441a
4
+ data.tar.gz: 1ed2f637f2203880711385de5cc6e1280a9b04ae
5
5
  SHA512:
6
- metadata.gz: 88129bf7d1e8c546b4433c3997d95fb4e07ce45c75c89ca7308b9f312858b6a6f37ac48044fc25bfcac14a99f97d7c839a87a773561d5b9332ef5043f232f68d
7
- data.tar.gz: ccf8ecc6a246c23dae452d70eb66e66538e5407af30fef4e30e7fed66fd298326a65597882d0efae65ee0bf7a4573551e97e30e74d09ed246d2aa33ff12a0d3a
6
+ metadata.gz: d20a11190ed54f8d814071a33825c2dc01672052082756669c3bcc5e17cb14c630c6ffabccfe4a5e71cb985dc4c6320d051aa4e542caa57ce2a5ba98e5b9fdc2
7
+ data.tar.gz: 00151b454e3eefef988b32a7956b4764ed88c777940ae567c1e7f8f836ab9e9ecf220eae8f15ffc795a83a68a8d2e41e7851bd1d0521d1a8786c285a2133a499
@@ -27,6 +27,7 @@ module ThemeJuice
27
27
  @env.vm_path = options[:vm_path]
28
28
  @env.vm_ip = options[:vm_ip]
29
29
  @env.vm_prefix = options[:vm_prefix]
30
+ @env.from_path = options[:from_path]
30
31
  @env.yolo = options[:yolo]
31
32
  @env.boring = options[:boring]
32
33
  @env.no_unicode = options[:no_unicode]
@@ -55,23 +56,24 @@ module ThemeJuice
55
56
  map %w[server remote] => :deploy
56
57
  map %w[vagrant vvv] => :vm
57
58
 
58
- class_option :vm_box, :type => :string, :default => nil, :desc => ""
59
- class_option :vm_path, :type => :string, :default => nil, :desc => ""
60
- class_option :vm_ip, :type => :string, :default => nil, :desc => ""
61
- class_option :vm_prefix, :type => :string, :default => nil, :desc => ""
62
- class_option :yolo, :type => :boolean, :aliases => "--yes", :desc => ""
63
- class_option :boring, :type => :boolean, :desc => ""
64
- class_option :no_unicode, :type => :boolean, :desc => ""
65
- class_option :no_colors, :type => :boolean, :aliases => "--no-color", :desc => ""
66
- class_option :no_animations, :type => :boolean, :desc => ""
67
- class_option :no_landrush, :type => :boolean, :desc => ""
68
- class_option :no_port_forward, :type => :boolean, :aliases => "--no-port-forwarding", :desc => ""
69
- class_option :verbose, :type => :boolean, :desc => ""
70
- class_option :quiet, :type => :boolean, :aliases => "--shh", :desc => ""
71
- class_option :robot, :type => :boolean, :desc => ""
72
- class_option :trace, :type => :boolean, :desc => ""
73
- class_option :dryrun, :type => :boolean, :aliases => "--dry-run", :desc => ""
74
- class_option :nginx, :type => :boolean, :aliases => "--no-apache", :desc => ""
59
+ class_option :vm_box, :type => :string, :default => nil, :desc => ""
60
+ class_option :vm_path, :type => :string, :default => nil, :desc => ""
61
+ class_option :vm_ip, :type => :string, :default => nil, :desc => ""
62
+ class_option :vm_prefix, :type => :string, :default => nil, :desc => ""
63
+ class_option :from_path, :type => :string, :aliases => "--in-path", :default => nil, :desc => ""
64
+ class_option :yolo, :type => :boolean, :aliases => "--yes", :desc => ""
65
+ class_option :boring, :type => :boolean, :desc => ""
66
+ class_option :no_unicode, :type => :boolean, :desc => ""
67
+ class_option :no_colors, :type => :boolean, :aliases => "--no-color", :desc => ""
68
+ class_option :no_animations, :type => :boolean, :desc => ""
69
+ class_option :no_landrush, :type => :boolean, :desc => ""
70
+ class_option :no_port_forward, :type => :boolean, :aliases => "--no-port-forwarding", :desc => ""
71
+ class_option :verbose, :type => :boolean, :desc => ""
72
+ class_option :quiet, :type => :boolean, :aliases => "--shh", :desc => ""
73
+ class_option :robot, :type => :boolean, :desc => ""
74
+ class_option :trace, :type => :boolean, :desc => ""
75
+ class_option :dryrun, :type => :boolean, :aliases => "--dry-run", :desc => ""
76
+ class_option :nginx, :type => :boolean, :aliases => "--no-apache", :desc => ""
75
77
 
76
78
  desc "--help, -h", "View man page"
77
79
  def help(command = nil)
@@ -37,7 +37,7 @@ module ThemeJuice
37
37
  private
38
38
 
39
39
  def run(command)
40
- @util.inside @project.location do
40
+ @util.inside (@env.from_path || @project.location) do
41
41
  @util.run command, { :verbose => @env.verbose,
42
42
  :capture => @env.quiet }
43
43
  end
@@ -60,7 +60,7 @@ module ThemeJuice
60
60
  end
61
61
 
62
62
  def read_config
63
- @project.location ||= Dir.pwd
63
+ @project.location ||= @env.from_path || Dir.pwd
64
64
 
65
65
  YAML.load_file Dir["#{@project.location}/*"].select { |f|
66
66
  config_regex =~ File.basename(f) }.last ||
@@ -8,6 +8,7 @@ module ThemeJuice
8
8
  attr_accessor :vm_path
9
9
  attr_accessor :vm_ip
10
10
  attr_accessor :vm_prefix
11
+ attr_accessor :from_path
11
12
  attr_accessor :yolo
12
13
  attr_accessor :boring
13
14
  attr_accessor :no_unicode
@@ -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" "January 2016" "" "Theme Juice Manual"
4
+ .TH "TJ" "1" "April 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\fR \- WordPress development made easy
@@ -28,6 +28,10 @@ Force IP address of VM*
28
28
  Force directory prefix for project in VM*
29
29
  .
30
30
  .TP
31
+ \fB\-\-from\-path\fR, \fB\-\-in\-path\fR=\fIpath\fR
32
+ Run Juicefile(5) commands from the passed path instead of the from current directory\.
33
+ .
34
+ .TP
31
35
  \fB\-\-yolo\fR, \fB\-\-yes\fR
32
36
  Say yes to anything and everything, and maybe even get a few surprises
33
37
  .
@@ -80,7 +84,7 @@ Run a command without actually doing anything
80
84
  Create \fBconf\fR files for nginx(7) instead of apache(7)*
81
85
  .
82
86
  .P
83
- \fB*\fR Flag is only applicable on first create(1) before the VM has been created, unless an new (unused) \fBvm\-path\fR is specified\.
87
+ \fB*\fR Flag is really only applicable on init(1) before the VM has been created, unless an new (unused) \fBvm\-path\fR is specified\.
84
88
  .
85
89
  .P
86
90
  \fB**\fR Coming soon (possibly)
@@ -21,8 +21,12 @@ GLOBAL OPTIONS
21
21
  --vm-prefix=string
22
22
  Force directory prefix for project in VM*
23
23
 
24
+ --from-path, --in-path=path
25
+ Run Juicefile(5) commands from the passed path instead of the
26
+ from current directory.
27
+
24
28
  --yolo, --yes
25
- Say yes to anything and everything, and maybe even get a few
29
+ Say yes to anything and everything, and maybe even get a few
26
30
  surprises
27
31
 
28
32
  --boring
@@ -61,8 +65,8 @@ GLOBAL OPTIONS
61
65
  --nginx, --no-apache
62
66
  Create conf files for nginx(7) instead of apache(7)*
63
67
 
64
- * Flag is only applicable on first create(1) before the VM has been
65
- created, unless an new (unused) vm-path is specified.
68
+ * Flag is really only applicable on init(1) before the VM has been cre-
69
+ ated, unless an new (unused) vm-path is specified.
66
70
 
67
71
  ** Coming soon (possibly)
68
72
 
@@ -95,14 +99,14 @@ SECONDARY COMMANDS
95
99
  List all projects
96
100
 
97
101
  vm, vagrant, vvv=[command[,command]...]
98
- Manage development environment via vagrant(1). Commands are
99
- proxied to your Vagrant installation so that they can be run
102
+ Manage development environment via vagrant(1). Commands are
103
+ proxied to your Vagrant installation so that they can be run
100
104
  from any directory.
101
105
 
102
106
  CONFIG COMMANDS
103
- These run the corresponding command from your project's config file.
107
+ These run the corresponding command from your project's config file.
104
108
  They accept any number of arguments, since the behavior and handling of
105
- input is defined within the config file itself. Below are the commands
109
+ input is defined within the config file itself. Below are the commands
106
110
  defined within the Theme Juice starter template.
107
111
 
108
112
  install=[arg[,arg]...]
@@ -130,11 +134,11 @@ CONFIG COMMANDS
130
134
  Manage and run project tests
131
135
 
132
136
  CONFIG FILE
133
- A YAML Juicefile(5) configuration can be used to store commonly-used
134
- build scripts (and deploy(1) info), similar to npm(1) scripts. Each
135
- command block sequence can be mapped to an individual project's build
137
+ A YAML Juicefile(5) configuration can be used to store commonly-used
138
+ build scripts (and deploy(1) info), similar to npm(1) scripts. Each
139
+ command block sequence can be mapped to an individual project's build
136
140
  tool, allowing a streamlined set of commands to be used across multiple
137
- projects that utilize different tools. Below are descriptions for the
141
+ projects that utilize different tools. Below are descriptions for the
138
142
  default commands within the Theme Juice starter template's Juicefile.
139
143
 
140
144
  commands
@@ -164,7 +168,7 @@ CONFIG FILE
164
168
  commands.test
165
169
  Command used to manage and run project tests
166
170
 
167
- Placeholder arguments can be used within any command block sequence to
171
+ Placeholder arguments can be used within any command block sequence to
168
172
  allow splat or indexed arguments to be passed to the corresponding com-
169
173
  mand when executed.
170
174
 
@@ -174,8 +178,8 @@ CONFIG FILE
174
178
  %argN%, %argumentN%
175
179
  Where n is the argument index e.g. cmd %arg1% | cmd %arg2%
176
180
 
177
- When naming your configuration file, use the recommended Juicefile, or
178
- .tj.yaml naming convention. The raw filename regex matcher is below if
181
+ When naming your configuration file, use the recommended Juicefile, or
182
+ .tj.yaml naming convention. The raw filename regex matcher is below if
179
183
  you want to be a little different.
180
184
 
181
185
  /^(((\.)?(tj)|((J|j)uicefile))(\.y(a)?ml)?$)/
@@ -183,7 +187,7 @@ CONFIG FILE
183
187
  ENVIRONMENT
184
188
  All of the global options have a corresponding ENV variable that can be
185
189
  set to permanently use the specified value each time tj(1) is run. This
186
- is useful if you're using an alternate vagrant(1) box, or if you need
190
+ is useful if you're using an alternate vagrant(1) box, or if you need
187
191
  to disable certain features due to limited support i.e. on Windows.
188
192
 
189
193
  TJ_VM_BOX=repository
@@ -199,7 +203,7 @@ ENVIRONMENT
199
203
  Force directory prefix for project in VM
200
204
 
201
205
  TJ_YOLO=bool
202
- Say yes to anything and everything, and maybe even get a few
206
+ Say yes to anything and everything, and maybe even get a few
203
207
  surprises
204
208
 
205
209
  TJ_BORING=bool
@@ -238,4 +242,4 @@ ENVIRONMENT
238
242
 
239
243
 
240
244
 
241
- January 2016 TJ(1)
245
+ April 2016 TJ(1)
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.22.0"
4
+ VERSION = "0.23.0"
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.22.0
4
+ version: 0.23.0
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-04-06 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor