eymigrate 0.1.3 → 0.1.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.
- data/VERSION +1 -1
- data/bin/eymigrate +17 -12
- data/eymigrate.gemspec +4 -4
- metadata +13 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/bin/eymigrate
CHANGED
@@ -30,9 +30,9 @@ def formatted_entry(host, ip)
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def display_hosts
|
33
|
-
say "
|
34
|
-
say "- Existing entries
|
35
|
-
say "
|
33
|
+
say "--------------------------------------------------------"
|
34
|
+
say "- Existing entries -"
|
35
|
+
say "--------------------------------------------------------"
|
36
36
|
if HostList.has_entries?
|
37
37
|
HostList.each do |host, ip|
|
38
38
|
say formatted_entry(host, ip)
|
@@ -40,7 +40,7 @@ def display_hosts
|
|
40
40
|
else
|
41
41
|
say "No IP mappings in place"
|
42
42
|
end
|
43
|
-
say "
|
43
|
+
say "--------------------------------------------------------"
|
44
44
|
end
|
45
45
|
|
46
46
|
def add_host
|
@@ -74,6 +74,11 @@ def main_menu
|
|
74
74
|
|
75
75
|
display_hosts
|
76
76
|
|
77
|
+
say "* Depending on your system these these rules may not *"
|
78
|
+
say "* persist across reboots, run `eymigrate on` to re-add *"
|
79
|
+
say '* the rules and always check you are accessing the *'
|
80
|
+
say "* servers you think you are. *"
|
81
|
+
say "--------------------------------------------------------"
|
77
82
|
choose do |menu|
|
78
83
|
menu.select_by = :index
|
79
84
|
menu.prompt = "Where would you like to go today?"
|
@@ -92,9 +97,9 @@ def edit_menu
|
|
92
97
|
choose do |menu|
|
93
98
|
menu.select_by = :index
|
94
99
|
menu.prompt = "Choose a hostname to edit:"
|
95
|
-
say "
|
96
|
-
say "- Existing entries
|
97
|
-
say "
|
100
|
+
say "--------------------------------------------------------"
|
101
|
+
say "- Existing entries -"
|
102
|
+
say "--------------------------------------------------------"
|
98
103
|
if HostList.has_entries?
|
99
104
|
HostList.each do |host, ip|
|
100
105
|
menu.choice(formatted_entry(host, ip)) { |c| edit_host(c.match(/^(\w|\.)+/)[0]) }
|
@@ -102,7 +107,7 @@ def edit_menu
|
|
102
107
|
else
|
103
108
|
say "No IP mappings in place"
|
104
109
|
end
|
105
|
-
say "
|
110
|
+
say "--------------------------------------------------------"
|
106
111
|
|
107
112
|
menu.choice(:back) { exit = true }
|
108
113
|
end
|
@@ -115,9 +120,9 @@ def delete_menu
|
|
115
120
|
choose do |menu|
|
116
121
|
menu.select_by = :index
|
117
122
|
menu.prompt = "Choose a hostname delete:"
|
118
|
-
say "
|
119
|
-
say "- Existing entries
|
120
|
-
say "
|
123
|
+
say "--------------------------------------------------------"
|
124
|
+
say "- Existing entries -"
|
125
|
+
say "--------------------------------------------------------"
|
121
126
|
if HostList.has_entries?
|
122
127
|
HostList.each do |host, ip|
|
123
128
|
menu.choice(formatted_entry(host, ip)) { |c| delete_host(c.match(/^(\w|\.)+/)[0]) }
|
@@ -125,7 +130,7 @@ def delete_menu
|
|
125
130
|
else
|
126
131
|
say "No IP mappings in place"
|
127
132
|
end
|
128
|
-
say "
|
133
|
+
say "--------------------------------------------------------"
|
129
134
|
|
130
135
|
menu.choice(:back) { exit = true }
|
131
136
|
end
|
data/eymigrate.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{eymigrate}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["wjessop"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-17}
|
13
13
|
s.default_executable = %q{eymigrate}
|
14
14
|
s.description = %q{simple gem for helping migrate EY customers}
|
15
15
|
s.email = %q{wjessop@engineyard.com}
|
@@ -32,14 +32,14 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/wjessop/eymigrate}
|
33
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
36
36
|
s.summary = %q{EY Migration tool}
|
37
37
|
|
38
38
|
if s.respond_to? :specification_version then
|
39
39
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
40
40
|
s.specification_version = 3
|
41
41
|
|
42
|
-
if Gem::Version.new(Gem::
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
43
|
s.add_runtime_dependency(%q<ghost>, [">= 0"])
|
44
44
|
s.add_runtime_dependency(%q<highline>, [">= 0"])
|
45
45
|
else
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eymigrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- wjessop
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-17 00:00:00 +01:00
|
18
19
|
default_executable: eymigrate
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: ghost
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -33,9 +36,11 @@ dependencies:
|
|
33
36
|
name: highline
|
34
37
|
prerelease: false
|
35
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
39
44
|
segments:
|
40
45
|
- 0
|
41
46
|
version: "0"
|
@@ -70,23 +75,27 @@ rdoc_options:
|
|
70
75
|
require_paths:
|
71
76
|
- lib
|
72
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
73
79
|
requirements:
|
74
80
|
- - ">="
|
75
81
|
- !ruby/object:Gem::Version
|
82
|
+
hash: 3
|
76
83
|
segments:
|
77
84
|
- 0
|
78
85
|
version: "0"
|
79
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
80
88
|
requirements:
|
81
89
|
- - ">="
|
82
90
|
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
83
92
|
segments:
|
84
93
|
- 0
|
85
94
|
version: "0"
|
86
95
|
requirements: []
|
87
96
|
|
88
97
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.3.
|
98
|
+
rubygems_version: 1.3.7
|
90
99
|
signing_key:
|
91
100
|
specification_version: 3
|
92
101
|
summary: EY Migration tool
|