psadmin_plus 2.0.3 → 2.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/psa +3 -1
  3. data/lib/psadmin_plus.rb +7 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b131e3db46750b3e5bca783ef3ea2c0f99c2abaa7d809c0dbd667f67e77252f
4
- data.tar.gz: f9cd54cf1507085abd557c3229d538e4325a6c0f0938a7be2d8cf364f448bd70
3
+ metadata.gz: f9e50fadeb47fc6959bfef534bb1fb031c85dc7051291ccbf914df38731351e6
4
+ data.tar.gz: 54aefd4d1ed463119baf1450a9feec43dc46db9e11c83843d4d790b536ac7278
5
5
  SHA512:
6
- metadata.gz: 4d48fdae790a0f0245a8d19addad355f897a27650d537a0b1f879fa6bc3d1fa905a6cd820dfdc0626f567b379570b875039e9b85d651c1d54efa5934e4b80e95
7
- data.tar.gz: e45d8e1be2e0fdc5410245c0087769befe6651735cfaadc64f26f1f86374f5338496e349f609ea9c69b2bc0e1aad70275b531ce976727f64221508653fbedbb5
6
+ metadata.gz: a8255d51419c37a7cd16696202434131f4861d5a1f647dfc1558268801942cc72689e5ed6f4f492c10e64c941e732e42cc38c2af9c758d39b0dcf8e6194e5a45
7
+ data.tar.gz: 76cd40f2fb74de8824add86573a2766feed4f269039b9095e176fc4e71c8a5182a7bc2d885c05b5cd1d1deb8fbcdd7c44fbce7f2444b4c9d4519e2b8886bafee
data/bin/psa CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'psadmin_plus'
4
- #require_relative '../lib/psadmin_plus.rb'
5
4
 
6
5
  # options
7
6
  opts_c = ARGV.shift || "help"
@@ -99,6 +98,9 @@ commands.each do |c|
99
98
  when "configure"
100
99
  do_cmd_banner(c,t,d)
101
100
  do_configure(t,d)
101
+ when "reconfigure"
102
+ do_cmd_banner(c,t,d)
103
+ do_reconfigure(t,d)
102
104
  when "purge"
103
105
  do_cmd_banner(c,t,d)
104
106
  do_purge(t,d)
@@ -18,6 +18,7 @@ def do_help
18
18
  puts " stop poolrm, if enabled, stop the domain"
19
19
  puts " restart stop and start the domain"
20
20
  puts " purge clear domain cache"
21
+ puts " reconfigure stop, configure, and start the domain"
21
22
  puts " bounce stop, flush, purge, configure and start the domain"
22
23
  puts " kill force stop the domain"
23
24
  puts " configure configure the domain"
@@ -470,6 +471,12 @@ def do_restart(type, domain)
470
471
  do_start(type, domain)
471
472
  end
472
473
 
474
+ def do_reconfigure(type, domain)
475
+ do_stop(type, domain)
476
+ do_configure(type, domain)
477
+ do_start(type, domain)
478
+ end
479
+
473
480
  def do_bounce(type, domain)
474
481
  do_stop(type, domain)
475
482
  do_purge(type, domain)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psadmin_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Benson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-10-13 00:00:00.000000000 Z
12
+ date: 2021-01-04 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A psadmin helper tool
15
15
  email: kyle@psadmin.io