Skip to content

Commit c7d8e20

Browse files
committed
chore
1 parent 0480864 commit c7d8e20

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.gradle
22
.idea
33
*.iml
4-
/build
5-
/classes
4+
build/
5+
classes/
66
npipe.exe
77
.DS_Store
88
out/

client/src/main/groovy/de/gesellix/docker/client/LocalDocker.groovy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class LocalDocker {
1212
log.debug available() ? "connection success" : "failed to connect"
1313
}
1414

15-
static available() {
15+
static boolean available() {
1616
try {
1717
return new DockerClientImpl().ping().status.code == 200
1818
}
@@ -22,7 +22,7 @@ class LocalDocker {
2222
}
2323
}
2424

25-
static supportsSwarmMode() {
25+
static boolean supportsSwarmMode() {
2626
try {
2727
def version = getDockerVersion()
2828
return (version.major >= 1 && version.minor >= 12) || version.major >= 17
@@ -33,7 +33,7 @@ class LocalDocker {
3333
}
3434
}
3535

36-
static supportsSecrets() {
36+
static boolean supportsSecrets() {
3737
try {
3838
def version = getDockerVersion()
3939
return (version.major >= 1 && version.minor >= 13) || version.major >= 17
@@ -44,7 +44,7 @@ class LocalDocker {
4444
}
4545
}
4646

47-
static supportsConfigs() {
47+
static boolean supportsConfigs() {
4848
try {
4949
def version = getDockerVersion()
5050
return version.major >= 17 && version.minor >= 6
@@ -55,7 +55,7 @@ class LocalDocker {
5555
}
5656
}
5757

58-
static supportsStack() {
58+
static boolean supportsStack() {
5959
try {
6060
def version = getDockerVersion()
6161
return (version.major >= 1 && version.minor >= 13) || version.major >= 17
@@ -126,17 +126,17 @@ class LocalDocker {
126126
}
127127
}
128128

129-
static isNamedPipe() {
129+
static boolean isNamedPipe() {
130130
def dockerHost = new DockerClientImpl().env.dockerHost
131131
return dockerHost.startsWith("npipe://")
132132
}
133133

134-
static isUnixSocket() {
134+
static boolean isUnixSocket() {
135135
def dockerHost = new DockerClientImpl().env.dockerHost
136136
return dockerHost.startsWith("unix://")
137137
}
138138

139-
static isTcpSocket() {
139+
static boolean isTcpSocket() {
140140
def dockerHost = new DockerClientImpl().env.dockerHost
141141
return dockerHost.startsWith("tcp://") || dockerHost.startsWith("http://") || dockerHost.startsWith("https://")
142142
}

0 commit comments

Comments
 (0)