akaer 2.0.0 → 2.1.0
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/Gemfile +2 -2
- data/README.md +4 -3
- data/akaer.gemspec +1 -1
- data/bin/akaer +3 -3
- data/doc/Akaer/Application.html +103 -103
- data/doc/Akaer/ApplicationMethods/General.html +4 -4
- data/doc/Akaer/ApplicationMethods/System.html +23 -23
- data/doc/Akaer/ApplicationMethods.html +3 -3
- data/doc/Akaer/Configuration.html +4 -4
- data/doc/Akaer/Version.html +4 -4
- data/doc/Akaer.html +3 -3
- data/doc/_index.html +4 -4
- data/doc/css/style.css +10 -0
- data/doc/file.README.html +7 -6
- data/doc/frames.html +1 -1
- data/doc/index.html +7 -6
- data/doc/top-level-namespace.html +3 -3
- data/lib/akaer/application.rb +31 -24
- data/lib/akaer/configuration.rb +5 -5
- data/lib/akaer/version.rb +1 -1
- data/locales/en.yml +2 -2
- data/locales/it.yml +2 -2
- data/spec/akaer/application_spec.rb +2 -2
- data/spec/akaer/configuration_spec.rb +2 -2
- metadata +5 -5
data/lib/akaer/version.rb
CHANGED
data/locales/en.yml
CHANGED
@@ -33,8 +33,8 @@
|
|
33
33
|
application_help_addresses: "The list of aliases to add. Overrides sequential list."
|
34
34
|
application_help_start_address: "The starting address for sequential aliases. Default is \"10.0.0.1\"."
|
35
35
|
application_help_aliases: "The number of aliases to add. Default is 5."
|
36
|
-
application_help_add_command: "The command to run for adding an alias. Default is \"sudo ifconfig
|
37
|
-
application_help_remove_command: "The command to run for removing an alias. Default is \"sudo ifconfig
|
36
|
+
application_help_add_command: "The command to run for adding an alias. Default is \"sudo ifconfig {{interface}} alias {{address}}\"."
|
37
|
+
application_help_remove_command: "The command to run for removing an alias. Default is \"sudo ifconfig {{interface}} -alias {{address}}\"."
|
38
38
|
application_help_log_file: "The log file to use. Default is standard output."
|
39
39
|
application_help_log_level: "The log level to use. Valid values are from 0 to 5 where 0 means \"all messages\". Default is 1."
|
40
40
|
application_help_dry_run: "Only show which modifications will be done."
|
data/locales/it.yml
CHANGED
@@ -33,8 +33,8 @@
|
|
33
33
|
application_help_addresses: "La lista di indirizzi da aggiungere. Sovrascrive la lista sequenziale."
|
34
34
|
application_help_start_address: "L'indirizzo iniziale per gli indirizzi sequenziali. L'indirizzo predefinito è \"10.0.0.1\"."
|
35
35
|
application_help_aliases: "Il numero di indirizzi da aggiungere. Il numero predefinito è 5."
|
36
|
-
application_help_add_command: "Il comando da eseguire per aggiungere un indirizzo. Il comando predefinito è \"sudo ifconfig
|
37
|
-
application_help_remove_command: "Il comando da eseguire per rimuovere un indirizzo. Il comando predefinito è \"sudo ifconfig
|
36
|
+
application_help_add_command: "Il comando da eseguire per aggiungere un indirizzo. Il comando predefinito è \"sudo ifconfig {{interface}} alias {{address}}\"."
|
37
|
+
application_help_remove_command: "Il comando da eseguire per rimuovere un indirizzo. Il comando predefinito è \"sudo ifconfig {{interface}} -alias {{address}}\"."
|
38
38
|
application_help_log_file: "Il file di log da utilizzare. Di default usa lo standard output."
|
39
39
|
application_help_log_level: "Il livello di log da utilizzare. I valori validi sono da 0 a 5 dove 0 significa \"tutti i messaggi\". Il valore predefinito è 1."
|
40
40
|
application_help_dry_run: "Mostra solo quali modifiche sarebbero applicato"
|
@@ -14,8 +14,8 @@ describe Akaer::Application do
|
|
14
14
|
option :addresses, [], {type: Array, default: overrides["addresses"] || []}
|
15
15
|
option :start_address, [], {type: String, default: overrides["start-address"] || "10.0.0.1"}
|
16
16
|
option :aliases, [:S], {type: Integer, default: overrides["aliases"] || 5}
|
17
|
-
option :add_command, [:A], {type: String, default: overrides["add-command"] || "sudo ifconfig {{interface}} alias {{
|
18
|
-
option :remove_command, [:R], {type: String, default: overrides["remove-command"] || "sudo ifconfig {{interface}} -alias {{
|
17
|
+
option :add_command, [:A], {type: String, default: overrides["add-command"] || "sudo ifconfig {{interface}} alias {{address}}"}
|
18
|
+
option :remove_command, [:R], {type: String, default: overrides["remove-command"] || "sudo ifconfig {{interface}} -alias {{address}}"}
|
19
19
|
option :log_file, [], {type: String, default: overrides["log-file"] || "/dev/null"}
|
20
20
|
option :log_level, [:L], {type: Integer, default: overrides["log-level"] || 1}
|
21
21
|
option :dry_run, [:n], {default: overrides["dry-run"] || false}
|
@@ -14,8 +14,8 @@ describe Akaer::Configuration do
|
|
14
14
|
expect(config.addresses).to eq([])
|
15
15
|
expect(config.start_address).to eq("10.0.0.1")
|
16
16
|
expect(config.aliases).to eq(5)
|
17
|
-
expect(config.add_command).to eq("sudo ifconfig {{interface}} alias {{
|
18
|
-
expect(config.remove_command).to eq("sudo ifconfig {{interface}} -alias {{
|
17
|
+
expect(config.add_command).to eq("sudo ifconfig {{interface}} alias {{address}}")
|
18
|
+
expect(config.remove_command).to eq("sudo ifconfig {{interface}} -alias {{address}}")
|
19
19
|
expect(config.log_file).to eq($stdout)
|
20
20
|
expect(config.log_level).to eq(Logger::INFO)
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akaer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mamertes
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0
|
21
|
+
version: 2.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0
|
29
|
+
version: 2.1.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: mustache
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: 1202195330414476013
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project: akaer
|
117
117
|
rubygems_version: 1.8.25
|