ukku 0.1.1 → 0.1.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 +8 -8
- data/lib/ukku/configure_command.rb +10 -1
- data/lib/ukku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzViOTY0ZjU4MzFhNjkyNDM3ZWViNDg0Mzk3NjcxN2FkZWJhMmUyZg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDUxNTBjZDBlNmY4OTYwYWJiMmUzOTIyZGNkZjM4MDM1YTVkN2FkMg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjVlMTlkN2QxNDY1YTZhNzlmNzNlYmMyYWI4NGMyN2E0ZjQ1YjFhMGQwNzIz
|
|
10
|
+
NzBmN2EyNzMxNWFkZWU3YWIzZGU1YTc4NmMwMjc0NjM3NmE5NGQ0ZDQ1YTkx
|
|
11
|
+
Njk4NTMyYWQ5MzQ4NDQ4ZjI3NDNiYWY2OWY2N2RjYzcxZjhiZjc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MzI1YWY0N2NmNTMwNzFjODI1M2EwOTk5ODU3OWVhMjYzYzgwZWZhNWM1ZjZm
|
|
14
|
+
YjY5ZTU1M2JhMzRlOGY3NDYxZDE0NjkxM2E1NzAyMzI5ZDJjOWU3NjkxZWZi
|
|
15
|
+
MzAzZmEyYjdmNzRlMTgwMmU5MTY5YTQ5OGJkOWYwMmY4YTljYmM=
|
|
@@ -16,7 +16,7 @@ class ConfigureCommand
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
conn = Connection.new(host, user, identity_file)
|
|
19
|
-
server_ready = conn
|
|
19
|
+
server_ready = is_server_ready?(conn)
|
|
20
20
|
|
|
21
21
|
if server_ready
|
|
22
22
|
puts "The server is already configured ... skipping"
|
|
@@ -47,6 +47,15 @@ class ConfigureCommand
|
|
|
47
47
|
h1.size == h2.size && (h1.keys - h2.keys).empty?
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
def is_server_ready?(conn)
|
|
51
|
+
begin
|
|
52
|
+
conn.execute("test -e /usr/bin/gitreceive")
|
|
53
|
+
true
|
|
54
|
+
rescue Subprocess::NonZeroExit
|
|
55
|
+
false
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
50
59
|
def configure_server(conn)
|
|
51
60
|
wget1_command = "wget https://raw.githubusercontent.com/germanescobar/ukku/master/server/bootstrap.sh"
|
|
52
61
|
wget2_command = "wget https://raw.githubusercontent.com/germanescobar/ukku/master/server/run.sh"
|
data/lib/ukku/version.rb
CHANGED