theme-juice 0.20.3 → 0.20.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c14bc3a05a89f32da20c0098fc5b27c1f86a6fcc
4
- data.tar.gz: f1d212125720d1bff326e66311d6419196ccadb2
3
+ metadata.gz: 34c52ea5c23cf5d7cc28b7836807be75c3772215
4
+ data.tar.gz: 8acbdcd47d3f1436005091832ec3f3ef22980371
5
5
  SHA512:
6
- metadata.gz: 3f76e4def9c1058f94be84993841177470ceb2931b2e48316b3daea72175cc4fc7fa895434737d5aa0d9870f3bc5ed6cd91871a40734dc6ba982350c24b331d2
7
- data.tar.gz: ff7c7b7f619531d683b5cc3ebb18a6ecdeea15ae45681c5132354fc7779c5bef55ee9ca9706f2436ba8dd41959cb3a7998ecc0d6bceaa1f7c8ecdc8f99e66586
6
+ metadata.gz: a22fe4f25079fa13cc56f1156ad2067be34c5a39cbb34b920c3dc73bbdeedfba4f3e2cc2cdd585f6879a5aa2fdce2fb208770d9327c68973a7023772d1e4381a
7
+ data.tar.gz: 4383498d82895f401a206877b3da5ead321544a047a2d317709b1f912563608a64f324fd917dd2639ff52e2f022894fff0ab3dfcbc71f9d90b589a7fc2ab2dc6
@@ -138,6 +138,7 @@ module ThemeJuice
138
138
  method_option :no_wp_cli, :type => :boolean, :aliases => %w[--no-wp-cli-config], :desc => ""
139
139
  method_option :no_db, :type => :boolean, :desc => ""
140
140
  method_option :no_env, :type => :boolean, :desc => ""
141
+ method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
141
142
  method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
142
143
  method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
143
144
  def create
@@ -146,26 +147,31 @@ module ThemeJuice
146
147
  end
147
148
 
148
149
  desc "setup", "Setup existing project"
149
- method_option :name, :type => :string, :aliases => "-n", :default => nil, :desc => ""
150
- method_option :location, :type => :string, :aliases => "-l", :default => nil, :desc => ""
151
- method_option :url, :type => :string, :aliases => "-u", :default => nil, :desc => ""
152
- method_option :repository, :type => :string, :aliases => "-r", :desc => ""
153
- method_option :db_import, :type => :string, :aliases => %w[-i --import-db], :desc => ""
154
- method_option :skip_repo, :type => :boolean, :desc => ""
155
- method_option :skip_db, :type => :boolean, :desc => ""
156
- method_option :use_defaults, :type => :boolean, :desc => ""
157
- method_option :no_wp, :type => :boolean, :desc => ""
158
- method_option :no_db, :type => :boolean, :desc => ""
150
+ method_option :name, :type => :string, :aliases => "-n", :default => nil, :desc => ""
151
+ method_option :location, :type => :string, :aliases => "-l", :default => nil, :desc => ""
152
+ method_option :url, :type => :string, :aliases => "-u", :default => nil, :desc => ""
153
+ method_option :repository, :type => :string, :aliases => "-r", :desc => ""
154
+ method_option :db_import, :type => :string, :aliases => %w[-i --import-db], :desc => ""
155
+ method_option :skip_repo, :type => :boolean, :desc => ""
156
+ method_option :skip_db, :type => :boolean, :desc => ""
157
+ method_option :use_defaults, :type => :boolean, :desc => ""
158
+ method_option :no_wp, :type => :boolean, :desc => ""
159
+ method_option :no_wp_cli, :type => :boolean, :aliases => %w[--no-wp-cli-config], :desc => ""
160
+ method_option :no_db, :type => :boolean, :desc => ""
161
+ method_option :no_env, :type => :boolean, :desc => ""
162
+ method_option :no_provision, :type => :boolean, :aliases => %w[--no-restart], :desc => ""
163
+ method_option :no_config, :type => :boolean, :aliases => %w[--no-juicefile], :desc => ""
164
+ method_option :wp_config_modify, :type => :boolean, :aliases => %w[--modify-wp-config], :desc => ""
159
165
  def setup
160
166
  @io.hello
161
167
  @create.new(options.dup.merge(:bare => true)).execute
162
168
  end
163
169
 
164
170
  desc "delete", "Delete a project (does not delete local project)"
165
- method_option :name, :type => :string, :aliases => "-n", :default => nil, :desc => ""
166
- method_option :url, :type => :string, :aliases => "-u", :default => nil, :desc => ""
167
- method_option :db_drop, :type => :boolean, :aliases => "--drop-db", :desc => ""
168
- method_option :vm_restart, :type => :boolean, :aliases => "--restart-vm", :desc => ""
171
+ method_option :name, :type => :string, :aliases => "-n", :default => nil, :desc => ""
172
+ method_option :url, :type => :string, :aliases => "-u", :default => nil, :desc => ""
173
+ method_option :db_drop, :type => :boolean, :aliases => "--drop-db", :desc => ""
174
+ method_option :vm_restart, :type => :boolean, :aliases => %w[--restart-vm --restart], :desc => ""
169
175
  def delete
170
176
  @delete.new(options).unexecute
171
177
  end
@@ -59,6 +59,7 @@ module ThemeJuice
59
59
  @project.no_db = @opts.fetch("no_db") { false }
60
60
  @project.wp_config_modify = @opts.fetch("wp_config_modify") { false }
61
61
  @project.no_config = @opts.fetch("no_config") { false }
62
+ @project.no_provision = @opts.fetch("no_provision") { false }
62
63
  @project.no_env = @opts.fetch("no_env") { @project.wp_config_modify }
63
64
  @project.name = @opts.fetch("name") { name }
64
65
  @project.location = @opts.fetch("location") { location }
@@ -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\-CREATE" "1" "January 2016" "" "Theme Juice Manual"
4
+ .TH "TJ\-CREATE" "1" "February 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-create\fR \- Create a new project
@@ -103,6 +103,10 @@ Project does not need a database
103
103
  Project does not need a \fB\.env\fR file
104
104
  .
105
105
  .TP
106
+ \fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
107
+ Do not provision VM after create(1)
108
+ .
109
+ .TP
106
110
  \fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
107
111
  Project does not have a Juicefile(5) config
108
112
  .
@@ -82,6 +82,9 @@ GLOBAL OPTIONS
82
82
  --no-env
83
83
  Project does not need a .env file
84
84
 
85
+ --no-provision, --no-restart
86
+ Do not provision VM after create(1)
87
+
85
88
  --no-config, --no-juicefile
86
89
  Project does not have a Juicefile(5) config
87
90
 
@@ -92,4 +95,4 @@ GLOBAL OPTIONS
92
95
 
93
96
 
94
97
 
95
- January 2016 TJ-CREATE(1)
98
+ February 2016 TJ-CREATE(1)
@@ -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\-SETUP" "1" "November 2015" "" "Theme Juice Manual"
4
+ .TH "TJ\-SETUP" "1" "February 2016" "" "Theme Juice Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBtj\-setup\fR \- Setup an existing project
@@ -51,6 +51,26 @@ Skip all prompts and use default settings
51
51
  Project is not a wordpress(7) install
52
52
  .
53
53
  .TP
54
+ \fB\-\-no\-wp\-cli\fR, \fB\-\-no\-wp\-cli\-config\fR
55
+ Skip creating the local wp\-cli(1) config file
56
+ .
57
+ .TP
54
58
  \fB\-\-no\-db\fR
55
59
  Project does not need a database
60
+ .
61
+ .TP
62
+ \fB\-\-no\-env\fR
63
+ Project does not need a \fB\.env\fR file
64
+ .
65
+ .TP
66
+ \fB\-\-no\-provision\fR, \fB\-\-no\-restart\fR
67
+ Do not provision VM after setup(1)
68
+ .
69
+ .TP
70
+ \fB\-\-no\-config\fR, \fB\-\-no\-juicefile\fR
71
+ Project does not have a Juicefile(5) config
72
+ .
73
+ .TP
74
+ \fB\-\-modify\-wp\-config\fR, \fB\-\-wp\-config\-modify\fR
75
+ Modify \fBwp\-config\.php\fR file contents with project configuration (this flag automatically disables the \fB\.env\fR file when used)
56
76
 
@@ -41,10 +41,26 @@ GLOBAL OPTIONS
41
41
  --no-wp
42
42
  Project is not a wordpress(7) install
43
43
 
44
+ --no-wp-cli, --no-wp-cli-config
45
+ Skip creating the local wp-cli(1) config file
46
+
44
47
  --no-db
45
48
  Project does not need a database
46
49
 
50
+ --no-env
51
+ Project does not need a .env file
52
+
53
+ --no-provision, --no-restart
54
+ Do not provision VM after setup(1)
55
+
56
+ --no-config, --no-juicefile
57
+ Project does not have a Juicefile(5) config
58
+
59
+ --modify-wp-config, --wp-config-modify
60
+ Modify wp-config.php file contents with project configuration
61
+ (this flag automatically disables the .env file when used)
62
+
47
63
 
48
64
 
49
65
 
50
- November 2015 TJ-SETUP(1)
66
+ February 2016 TJ-SETUP(1)
@@ -28,6 +28,7 @@ module ThemeJuice
28
28
  attr_accessor :no_wp_cli
29
29
  attr_accessor :no_db
30
30
  attr_accessor :no_env
31
+ attr_accessor :no_provision
31
32
  attr_accessor :no_config
32
33
  attr_accessor :wp_config_modify
33
34
 
@@ -9,7 +9,9 @@ module ThemeJuice
9
9
  end
10
10
 
11
11
  def execute
12
- if @io.agree? "In order to complete the process, you need to provision the VM. Do it now?"
12
+ if @project.no_provision
13
+ @io.notice "Skipping provision..."
14
+ elsif @io.agree? "In order to complete the process, you need to provision the VM. Do it now?"
13
15
  provision
14
16
  else
15
17
  @io.notice "Remember, the VM needs to be provisioned before your changes take effect"
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.20.3"
4
+ VERSION = "0.20.4"
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.20.3
4
+ version: 0.20.4
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-28 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor