minio_runner 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/minio_runner/version.rb +1 -1
- data/lib/minio_runner.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05673a80f366bbb670c2ceb4cce28d3d8d27b7b25c4418482d15d6030b6a5fe1
|
4
|
+
data.tar.gz: 6ecaa3cefbd2962e8eaf7fb7262c479ca5e6383bbe2e711d9f459c9987d492e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9427c0521263fc9cf1ab467acc3af4aaf759802134b88a59f8105d0d14dd6a1c496d83b5a26744923666ec8a8688ececb62fc79670db63142450d2449cf6b141
|
7
|
+
data.tar.gz: ccc978d672db68a3b59b4feaa723581e8aa445fd4535770c2d6767c81a7255aac8ae6110b9af3e3a4f37c66854661b418eda627c732cd8aabd8dd679de757775
|
data/Gemfile.lock
CHANGED
data/lib/minio_runner/version.rb
CHANGED
data/lib/minio_runner.rb
CHANGED
@@ -13,6 +13,8 @@ require_relative "minio_runner/mc_manager"
|
|
13
13
|
|
14
14
|
module MinioRunner
|
15
15
|
class << self
|
16
|
+
@@started = false
|
17
|
+
|
16
18
|
def config(&block)
|
17
19
|
@config ||= MinioRunner::Config.new
|
18
20
|
if block_given?
|
@@ -53,6 +55,12 @@ module MinioRunner
|
|
53
55
|
setup_buckets
|
54
56
|
|
55
57
|
logger.debug("Started minio_runner.")
|
58
|
+
|
59
|
+
@@started = true
|
60
|
+
end
|
61
|
+
|
62
|
+
def started?
|
63
|
+
@@started
|
56
64
|
end
|
57
65
|
|
58
66
|
def install_binaries
|
@@ -80,9 +88,11 @@ module MinioRunner
|
|
80
88
|
end
|
81
89
|
|
82
90
|
def stop
|
91
|
+
return if !started?
|
83
92
|
logger.debug("Stopping minio_runner...")
|
84
93
|
MinioRunner::MinioServerManager.stop
|
85
94
|
logger.debug("Stopped minio_runner.")
|
95
|
+
@@started = false
|
86
96
|
end
|
87
97
|
|
88
98
|
def reset_config!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minio_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Brennan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: syntax_tree
|