capricorn 0.2.06 → 0.2.07
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.
- data/lib/capricorn/actors/host_file_actor.rb +2 -0
- metadata +2 -2
|
@@ -9,6 +9,7 @@ module Capricorn
|
|
|
9
9
|
# addthe fost form the host file
|
|
10
10
|
def add_host_name
|
|
11
11
|
content = load_file
|
|
12
|
+
content[:capricorn]['127.0.0.1'] ||= []
|
|
12
13
|
content[:capricorn]['127.0.0.1'].push satellite.domain
|
|
13
14
|
dump_file(content)
|
|
14
15
|
end
|
|
@@ -16,6 +17,7 @@ module Capricorn
|
|
|
16
17
|
# remove the fost form the host file
|
|
17
18
|
def remove_host_name
|
|
18
19
|
content = load_file
|
|
20
|
+
content[:capricorn]['127.0.0.1'] ||= []
|
|
19
21
|
content[:capricorn]['127.0.0.1'].delete satellite.domain
|
|
20
22
|
dump_file(content)
|
|
21
23
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capricorn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.07
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Menke
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-06-
|
|
12
|
+
date: 2009-06-22 00:00:00 +02:00
|
|
13
13
|
default_executable: capricorn
|
|
14
14
|
dependencies: []
|
|
15
15
|
|