theme-juice 0.6.9 → 0.6.10

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: e2507ea555270b69fb0d14bd05e5a37eb93f81f8
4
- data.tar.gz: 09bdd2f4cb9300982151f227e0f5a33aea8035f7
3
+ metadata.gz: 7c160c7c794b1bf475412412e3b783f2428816bd
4
+ data.tar.gz: d984689f96c3f1b2d8751567dccb8c297c3a9383
5
5
  SHA512:
6
- metadata.gz: 411a2116cdd114ea8b142c96f66dd678910433dbe37f97227e160299343405e42e2c1251d3c8cce69ffb637d0f7ab71bcb71d5a26cc686da85a18f5ab41e2f46
7
- data.tar.gz: 5607010b7ee8d93b8edc5b8d5669341c63844e8a8f8fd469497bb07dd4508d6fed84cf0aed082abd75212490e6413f83c83b9b3382a9eceed14b4694a96ec5fa
6
+ metadata.gz: 9b2c4514ca2fdce7bbaf8adc2f911c25373b4cc5c20657e4737dab9c577a64ee0dd51194f75649be246700f87429473a8a20c0c9466e3b98b2bc0b0160664734
7
+ data.tar.gz: f9d934b13dc6c84901daffb65de9e8acf1df8f462df455f348514d21f1928d5af9723cdf537584e0f0423f73c49d4bd0bf9d8a9b245b5a2551c5e12e8d72b244
@@ -20,8 +20,8 @@ module ThemeJuice
20
20
  # Class options
21
21
  #
22
22
  class_option :vvv_path, :type => :string, :default => nil, :desc => "Force path to VVV installation"
23
- class_option :yolo, :type => :boolean, :desc => "Say yes to anything and everything"
24
- class_option :boring, :type => :boolean, :desc => "Disable all the coolness"
23
+ class_option :yolo, :type => :boolean, :desc => "Say yes to anything and everything"
24
+ class_option :boring, :type => :boolean, :desc => "Disable all the coolness"
25
25
  class_option :no_unicode, :type => :boolean, :desc => "Disable all unicode characters"
26
26
  class_option :no_colors, :type => :boolean, :desc => "Disable all colored output"
27
27
  class_option :no_animations, :type => :boolean, :desc => "Disable all animations"
@@ -40,9 +40,9 @@ module ThemeJuice
40
40
  }
41
41
  end
42
42
 
43
- desc "create", "Create new site and setup VVV environment"
43
+ desc "create [NAME]", "Create new site and setup VVV environment"
44
44
  method_option :bare, :type => :boolean, :aliases => "-b", :desc => "Create a VVV site without a starter theme"
45
- method_option :site, :type => :string, :aliases => "-s", :default => false, :desc => "Name of the development site"
45
+ method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
46
46
  method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
47
47
  method_option :theme, :type => :string, :aliases => "-t", :default => false, :desc => "Starter theme to install"
48
48
  method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
@@ -53,18 +53,18 @@ module ThemeJuice
53
53
  #
54
54
  # Install and setup VVV environment with new site
55
55
  #
56
- # @param {String} site (nil)
56
+ # @param {String} name (nil)
57
57
  # Name of the site to create
58
58
  #
59
59
  # @return {Void}
60
60
  #
61
- def create(site = nil)
61
+ def create(name = nil)
62
62
  self.set_environment
63
63
  @interaction.hello
64
64
 
65
65
  opts = {
66
66
  :site_bare => options[:bare],
67
- :site_name => site || options[:site],
67
+ :site_name => name || options[:name],
68
68
  :site_location => options[:location],
69
69
  :site_starter_theme => options[:theme],
70
70
  :site_dev_location => nil,
@@ -78,8 +78,8 @@ module ThemeJuice
78
78
  @create.new(opts)
79
79
  end
80
80
 
81
- desc "setup [SITE]", "Setup an existing SITE within the development environment"
82
- method_option :site, :type => :string, :aliases => "-s", :default => false, :desc => "Name of the development site"
81
+ desc "setup [NAME]", "Setup an existing site within the development environment"
82
+ method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
83
83
  method_option :location, :type => :string, :aliases => "-l", :default => false, :desc => "Location of the local site"
84
84
  method_option :url, :type => :string, :aliases => "-u", :default => false, :desc => "Development URL of the site"
85
85
  method_option :repository, :type => :string, :aliases => "-r", :desc => "Initialize a new Git remote repository"
@@ -89,18 +89,18 @@ module ThemeJuice
89
89
  #
90
90
  # Setup an existing WordPress install in VVV
91
91
  #
92
- # @param {String} site (nil)
92
+ # @param {String} name (nil)
93
93
  # Name of the site to setup
94
94
  #
95
95
  # @return {Void}
96
96
  #
97
- def setup(site = nil)
97
+ def setup(name = nil)
98
98
  self.set_environment
99
99
  @interaction.hello
100
100
 
101
101
  opts = {
102
102
  :site_bare => true,
103
- :site_name => site || options[:site],
103
+ :site_name => name || options[:name],
104
104
  :site_location => options[:location],
105
105
  :site_starter_theme => false,
106
106
  :site_dev_location => nil,
@@ -114,23 +114,23 @@ module ThemeJuice
114
114
  @create.new(opts)
115
115
  end
116
116
 
117
- desc "delete SITE", "Remove SITE from the VVV development environment (does not remove local site)"
118
- method_option :site, :type => :string, :aliases => "-s", :default => false, :desc => "Name of the development site"
117
+ desc "delete [NAME]", "Remove site from the VVV development environment (does not remove local site)"
118
+ method_option :name, :type => :string, :aliases => "-n", :default => false, :desc => "Name of the development site"
119
119
  method_option :restart, :type => :boolean, :aliases => "-r", :desc => "Restart development environment after SITE deletion"
120
120
  #
121
121
  # Remove all traces of site from Vagrant
122
122
  #
123
- # @param {String} site (nil)
123
+ # @param {String} name (nil)
124
124
  # Site to delete. This will not delete your local files, only
125
125
  # files within the VVV environment.
126
126
  #
127
127
  # @return {Void}
128
128
  #
129
- def delete(site = nil)
129
+ def delete(name = nil)
130
130
  self.set_environment
131
131
 
132
132
  opts = {
133
- :site_name => site || options[:site],
133
+ :site_name => name || options[:name],
134
134
  :site_dev_location => nil,
135
135
  :restart => options[:restart]
136
136
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.6.9"
4
+ VERSION = "0.6.10"
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.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse