akaer 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/akaer/version.rb CHANGED
@@ -13,7 +13,7 @@ module Akaer
13
13
  MAJOR = 2
14
14
 
15
15
  # The minor version.
16
- MINOR = 0
16
+ MINOR = 1
17
17
 
18
18
  # The patch version.
19
19
  PATCH = 0
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 @INTERFACE@ alias @ALIAS@\"."
37
- application_help_remove_command: "The command to run for removing an alias. Default is \"sudo ifconfig @INTERFACE@ -alias @ALIAS@\"."
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 @INTERFACE@ alias @ALIAS@\"."
37
- application_help_remove_command: "Il comando da eseguire per rimuovere un indirizzo. Il comando predefinito è \"sudo ifconfig @INTERFACE@ -alias @ALIAS@\"."
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 {{alias}}"}
18
- option :remove_command, [:R], {type: String, default: overrides["remove-command"] || "sudo ifconfig {{interface}} -alias {{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 {{alias}}")
18
- expect(config.remove_command).to eq("sudo ifconfig {{interface}} -alias {{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.0.0
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-02-10 00:00:00.000000000 Z
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.6
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.6
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: -4087462064860462212
114
+ hash: 1202195330414476013
115
115
  requirements: []
116
116
  rubyforge_project: akaer
117
117
  rubygems_version: 1.8.25