theme-juice 0.7.14 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -167
- data/lib/theme-juice/cli.rb +64 -91
- data/lib/theme-juice/commands/create.rb +26 -27
- data/lib/theme-juice/commands/delete.rb +4 -7
- data/lib/theme-juice/commands/deploy.rb +1 -14
- data/lib/theme-juice/env.rb +52 -3
- data/lib/theme-juice/helpers/singleton_helper.rb +8 -1
- data/lib/theme-juice/man/tj +212 -0
- data/lib/theme-juice/man/tj-create +115 -0
- data/lib/theme-juice/man/tj-create.txt +75 -0
- data/lib/theme-juice/man/tj-delete +53 -0
- data/lib/theme-juice/man/tj-delete.txt +39 -0
- data/lib/theme-juice/man/tj-setup +92 -0
- data/lib/theme-juice/man/tj-setup.txt +61 -0
- data/lib/theme-juice/man/tj.txt +130 -0
- data/lib/theme-juice/project.rb +13 -0
- data/lib/theme-juice/task.rb +0 -12
- data/lib/theme-juice/tasks/list.rb +0 -3
- data/lib/theme-juice/tasks/vm.rb +6 -6
- data/lib/theme-juice/version.rb +1 -1
- metadata +24 -2
data/lib/theme-juice/project.rb
CHANGED
@@ -23,9 +23,22 @@ module ThemeJuice
|
|
23
23
|
attr_accessor :skip_repo
|
24
24
|
attr_accessor :skip_db
|
25
25
|
attr_accessor :use_defaults
|
26
|
+
attr_accessor :no_theme
|
26
27
|
attr_accessor :no_wp
|
27
28
|
attr_accessor :no_db
|
28
29
|
|
30
|
+
def vm_root
|
31
|
+
@vm_root ||= File.expand_path("#{Env.vm_path}/www")
|
32
|
+
end
|
33
|
+
|
34
|
+
def vm_location
|
35
|
+
@vm_location ||= "#{vm_root}/#{Env.vm_prefix}#{name}"
|
36
|
+
end
|
37
|
+
|
38
|
+
def vm_srv
|
39
|
+
@vm_srv ||= "/srv/www/#{Env.vm_prefix}#{name}"
|
40
|
+
end
|
41
|
+
|
29
42
|
extend self
|
30
43
|
end
|
31
44
|
end
|
data/lib/theme-juice/task.rb
CHANGED
@@ -27,17 +27,5 @@ module ThemeJuice
|
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
30
|
-
|
31
|
-
def vm_root
|
32
|
-
File.expand_path "#{@env.vm_path}/www"
|
33
|
-
end
|
34
|
-
|
35
|
-
def vm_location
|
36
|
-
"#{vm_root}/#{@env.vm_prefix}#{@project.name}"
|
37
|
-
end
|
38
|
-
|
39
|
-
def vm_srv
|
40
|
-
"/srv/www/#{@env.vm_prefix}#{@project.name}"
|
41
|
-
end
|
42
30
|
end
|
43
31
|
end
|
data/lib/theme-juice/tasks/vm.rb
CHANGED
@@ -9,19 +9,19 @@ module ThemeJuice
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def execute
|
12
|
-
|
12
|
+
install_box
|
13
13
|
end
|
14
14
|
|
15
15
|
private
|
16
16
|
|
17
|
-
def
|
17
|
+
def box_is_installed?
|
18
18
|
File.exist? @env.vm_path
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
unless
|
23
|
-
@io.log "Installing
|
24
|
-
@util.run "git clone
|
21
|
+
def install_box
|
22
|
+
unless box_is_installed?
|
23
|
+
@io.log "Installing Vagrant box"
|
24
|
+
@util.run "git clone #{@env.vm_box} #{@env.vm_path} --depth 1",
|
25
25
|
:verbose => @env.verbose
|
26
26
|
end
|
27
27
|
end
|
data/lib/theme-juice/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.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: 2015-
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.6'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: ronn
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.7'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.7'
|
111
125
|
description: Theme Juice is a WordPress development command line utility that allows
|
112
126
|
you to scaffold out entire Vagrant development environments in seconds, manage dependencies
|
113
127
|
and build tools, and even handle deployments.
|
@@ -130,6 +144,14 @@ files:
|
|
130
144
|
- lib/theme-juice/env.rb
|
131
145
|
- lib/theme-juice/helpers/singleton_helper.rb
|
132
146
|
- lib/theme-juice/io.rb
|
147
|
+
- lib/theme-juice/man/tj
|
148
|
+
- lib/theme-juice/man/tj-create
|
149
|
+
- lib/theme-juice/man/tj-create.txt
|
150
|
+
- lib/theme-juice/man/tj-delete
|
151
|
+
- lib/theme-juice/man/tj-delete.txt
|
152
|
+
- lib/theme-juice/man/tj-setup
|
153
|
+
- lib/theme-juice/man/tj-setup.txt
|
154
|
+
- lib/theme-juice/man/tj.txt
|
133
155
|
- lib/theme-juice/patches/option.rb
|
134
156
|
- lib/theme-juice/project.rb
|
135
157
|
- lib/theme-juice/task.rb
|