theme-juice 0.6.1 → 0.6.2

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: 4c1b4474cefccc6e847057f49168b505fe3cb18e
4
- data.tar.gz: 76f95bc1bc6589705ee48bb6570dd2f9658cf360
3
+ metadata.gz: 4002e13353201f581d737bbf71246937664f868d
4
+ data.tar.gz: 03b7fed719df925ba6a8a3fd222d59686bf958d8
5
5
  SHA512:
6
- metadata.gz: a190f61c738570c64744a75090d111ff31057bb63e76bfda0fa6fb6dd1b5f01e907a11b2f679a00529aafdd559c2c0cf17aa5bbf44146de696fd4082ed0cf50a
7
- data.tar.gz: a08f41de3bb69eb72516a9c1a3d24087f7275afdfa52dd4c385a8fca0fe549f731576a87247a16391c1cbf7785c43fc05a9960d3e9b58e1b11c7be3e8dd9ce2e
6
+ metadata.gz: cb2725dd63bc5d111ba01e8b8b0374b2d9bf354caa8c656d4020de74fafe57ae40a7212a4341056c45c8980106c09223ab1009cfc0958eafe9d9de84adcfb642
7
+ data.tar.gz: 5a2c59ebfa523bdded433e4324dd323f5c731486a1b52aa9d700b60d0cf5db9309e4cfef72de1f5968baad7360ac6cb9fdd32d09cd3939c92ef39b0d0e583988
@@ -35,7 +35,7 @@ module ThemeJuice
35
35
  def version
36
36
  self.set_environment
37
37
 
38
- @interaction.speak ::ThemeJuice::VERSION, { color: :green }
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
- ::ThemeJuice::Command::Create.new(opts)
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
- ::ThemeJuice::Command::Create.new(opts)
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
- ::ThemeJuice::Command::Delete.new(opts)
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
- ::ThemeJuice::Command::List.new
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
- ::ThemeJuice::Command::Install.new
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
- ::ThemeJuice::Command::Subcommand.new(opts)
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
- ::ThemeJuice::Command::Subcommand.new(opts)
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
- ::ThemeJuice::Command::Subcommand.new(opts)
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
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse