akaer 2.3.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjczMmIxZmQ5MDRlMjE2NDU3MTIwYjE2MDBlM2FjZGFiMGVmNDQ4NA==
5
+ data.tar.gz: !binary |-
6
+ OGFhYzE1MjczZTFlOTlhODFkZjIyYTY2NjJjZGIwN2YwZmMxZmVkNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NWUxZmM1ZDUzMzAxZWU1ZDk5NjA2ZTI4MGNhOGU1M2NmM2FhZmUyODJkOGNm
10
+ MTE4MDQ4OTk1YzM0YzJlYjMzZWM4OTcxMmEwYTI1OTc5YjZjOTdiYjNkY2I1
11
+ ODYyOWZjZTNkMDNjZWNiNjY2YWE1MmExNGM4NzIxYzcwMTM4MWM=
12
+ data.tar.gz: !binary |-
13
+ MDk5ZTUyZjMyMDc4ZDhiMTBhNTVhMGFhNjA4NjBmZTNjM2VlZTk1OTY5ZDcx
14
+ MTc0MzU1MWZhMzNlMjU2N2U3NDMwMDgzNjNiMTUxNzMyNDJhZTJmYmVlY2Rk
15
+ MjU5YTE5ODBlNzY2ODZhODcxY2IwYTg2ZDljMjNiN2YzODAxZjU=
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # akaer
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/akaer.png)](http://badge.fury.io/rb/akaer)
4
- [![Dependency Status](https://gemnasium.com/ShogunPanda/akaer.png?travis)](https://gemnasium.com/ShogunPanda/akaer)
5
4
  [![Build Status](https://secure.travis-ci.org/ShogunPanda/akaer.png?branch=master)](http://travis-ci.org/ShogunPanda/akaer)
6
5
  [![Code Climate](https://codeclimate.com/github/ShogunPanda/akaer.png)](https://codeclimate.com/github/ShogunPanda/akaer)
7
6
  [![Coverage Status](https://coveralls.io/repos/ShogunPanda/akaer/badge.png)](https://coveralls.io/r/ShogunPanda/akaer)
@@ -12,56 +11,11 @@ http://sw.cow.tc/akaer
12
11
 
13
12
  http://rdoc.info/gems/akaer
14
13
 
15
- ## Description
14
+ ## END OF DEVELOPMENT NOTICE
16
15
 
17
- Akaer is a small utility that adds and removes aliases to your network interfaces. This is useful in web development.
16
+ This gem has been discontinued.
18
17
 
19
- ## Basic usage
20
-
21
- 1. Install the gem:
22
-
23
- ```sh
24
- gem install akaer
25
- ```
26
-
27
- 2. Run the application:
28
-
29
- ```sh
30
- akaer
31
- ```
32
-
33
- **You're done!**
34
-
35
- ## Advanced usage
36
-
37
- Just type `akaer --help` and you'll see all available options.
38
-
39
- ## Configuration
40
-
41
- By defaults, Akaer uses a configuration file in `~/.akaer_config`, but you can change the path using the `--config` switch.
42
-
43
- The file is a plain Ruby file with a single `config` object that supports the following directives.
44
-
45
- * `interface`: The network interface to manage. `lo0` by default.
46
- * `addresses`: A specific list of aliases to manage.
47
- * `start_address`: The address to start sequential address. `10.0.0.1` by default. Not used if `addresses` is specified.
48
- * `aliases`: The number of sequential addresses to add. 5 by default.
49
- * `add_command`: The command to run for adding an alias. `sudo ifconfig {{interface}} alias {{address}}` by default.
50
- * `remove_command`: The command to run for removing an alias. `sudo ifconfig {{interface}} -alias {{address}}` by default.
51
- * `log_file`: The default log file. By default it logs to standard output.
52
- * `log_level`: The default log level. Valid values are from 0 to 5 where 0 means "all messages".
53
- * `dry_run`: Only show which modifications will be done.
54
- * `quiet`: Do not show any message.
55
-
56
- ## Contributing to akaer
57
-
58
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
59
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
60
- * Fork the project.
61
- * Start a feature/bugfix branch.
62
- * Commit and push until you are happy with your contribution.
63
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
64
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
18
+ ### Since version 3.0.0, all its functionalities are merged in [devdnsd](http://sw.cow.tc/devdnsd).
65
19
 
66
20
  ## Copyright
67
21
 
data/akaer.gemspec CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |gem|
23
23
 
24
24
  gem.required_ruby_version = ">= 1.9.3"
25
25
 
26
- gem.add_dependency("mamertes", "~> 2.3.0")
26
+ gem.add_dependency("bovem", "~> 3.0.2")
27
27
  gem.add_dependency("mustache", "~> 0.99.4")
28
- end
28
+ end
data/bin/akaer CHANGED
@@ -7,7 +7,7 @@
7
7
  require "rubygems"
8
8
  require "akaer"
9
9
 
10
- Mamertes.App do
10
+ Bovem::Application.create do
11
11
  localizer = Lazier::Localizer.new(:akaer, ::File.absolute_path(::Pathname.new(::File.dirname(__FILE__)).to_s + "/../locales/")).i18n
12
12
 
13
13
  name "Akaer"
data/doc/Akaer.html CHANGED
@@ -121,7 +121,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Sat Jul 20 15:44:45 2013 by
124
+ Generated on Sun Aug 11 15:51:58 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.6.2 (ruby-1.9.3).
127
127
  </div>
@@ -151,7 +151,7 @@
151
151
  <li class="public ">
152
152
  <span class="summary_signature">
153
153
 
154
- <a href="#command-instance_method" title="#command (instance method)">- (Mamertes::Command) <strong>command</strong> </a>
154
+ <a href="#command-instance_method" title="#command (instance method)">- (Bovem::Command) <strong>command</strong> </a>
155
155
 
156
156
 
157
157
 
@@ -168,7 +168,7 @@
168
168
 
169
169
 
170
170
 
171
- <span class="summary_desc"><div class='inline'><p>The Mamertes command.</p>
171
+ <span class="summary_desc"><div class='inline'><p>The Bovem command.</p>
172
172
  </div></span>
173
173
 
174
174
  </li>
@@ -512,12 +512,12 @@
512
512
  <span class='name'>command</span>
513
513
 
514
514
 
515
- <span class='type'>(<tt>Mamertes::Command</tt>)</span>
515
+ <span class='type'>(<tt>Bovem::Command</tt>)</span>
516
516
 
517
517
 
518
518
 
519
519
  &mdash;
520
- <div class='inline'><p>The current Mamertes command.</p>
520
+ <div class='inline'><p>The current Bovem command.</p>
521
521
  </div>
522
522
 
523
523
  </li>
@@ -560,8 +560,7 @@
560
560
  295
561
561
  296
562
562
  297
563
- 298
564
- 299</pre>
563
+ 298</pre>
565
564
  </td>
566
565
  <td>
567
566
  <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 284</span>
@@ -574,8 +573,7 @@
574
573
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_get_options'>get_options</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='rbrace'>}</span>
575
574
 
576
575
  <span class='comment'># Setup logger
577
- </span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
578
- <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
576
+ </span> <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
579
577
 
580
578
  <span class='comment'># Open configuration
581
579
  </span> <span class='id identifier rubyid_read_configuration'>read_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -780,8 +778,7 @@
780
778
  429
781
779
  430
782
780
  431
783
- 432
784
- 433</pre>
781
+ 432</pre>
785
782
  </td>
786
783
  <td>
787
784
  <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 271</span>
@@ -797,7 +794,7 @@
797
794
 
798
795
  <span class='comment'># Creates a new application.
799
796
  </span> <span class='comment'>#
800
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
797
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
801
798
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
802
799
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
803
800
  <span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:akaer</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -807,8 +804,7 @@
807
804
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_get_options'>get_options</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='rbrace'>}</span>
808
805
 
809
806
  <span class='comment'># Setup logger
810
- </span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
811
- <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
807
+ </span> <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
812
808
 
813
809
  <span class='comment'># Open configuration
814
810
  </span> <span class='id identifier rubyid_read_configuration'>read_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -892,7 +888,7 @@
892
888
 
893
889
  <span class='comment'># Returns a unique (singleton) instance of the application.
894
890
  </span> <span class='comment'>#
895
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
891
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
896
892
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
897
893
  </span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
898
894
  </span> <span class='comment'># @return [Application] The unique (singleton) instance of the application.
@@ -959,7 +955,7 @@
959
955
  <div class="method_details ">
960
956
  <h3 class="signature " id="command-instance_method">
961
957
 
962
- - (<tt>Mamertes::Command</tt>) <strong>command</strong>
958
+ - (<tt>Bovem::Command</tt>) <strong>command</strong>
963
959
 
964
960
 
965
961
 
@@ -967,7 +963,7 @@
967
963
 
968
964
  </h3><div class="docstring">
969
965
  <div class="discussion">
970
- <p>The Mamertes command.</p>
966
+ <p>The Bovem command.</p>
971
967
 
972
968
 
973
969
  </div>
@@ -980,12 +976,12 @@
980
976
  <li>
981
977
 
982
978
 
983
- <span class='type'>(<tt>Mamertes::Command</tt>)</span>
979
+ <span class='type'>(<tt>Bovem::Command</tt>)</span>
984
980
 
985
981
 
986
982
 
987
983
  &mdash;
988
- <div class='inline'><p>The Mamertes command.</p>
984
+ <div class='inline'><p>The Bovem command.</p>
989
985
  </div>
990
986
 
991
987
  </li>
@@ -1159,8 +1155,7 @@
1159
1155
  429
1160
1156
  430
1161
1157
  431
1162
- 432
1163
- 433</pre>
1158
+ 432</pre>
1164
1159
  </td>
1165
1160
  <td>
1166
1161
  <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 271</span>
@@ -1176,7 +1171,7 @@
1176
1171
 
1177
1172
  <span class='comment'># Creates a new application.
1178
1173
  </span> <span class='comment'>#
1179
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
1174
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
1180
1175
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
1181
1176
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
1182
1177
  <span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:akaer</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1186,8 +1181,7 @@
1186
1181
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_get_options'>get_options</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='rbrace'>}</span>
1187
1182
 
1188
1183
  <span class='comment'># Setup logger
1189
- </span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
1190
- <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
1184
+ </span> <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
1191
1185
 
1192
1186
  <span class='comment'># Open configuration
1193
1187
  </span> <span class='id identifier rubyid_read_configuration'>read_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -1271,7 +1265,7 @@
1271
1265
 
1272
1266
  <span class='comment'># Returns a unique (singleton) instance of the application.
1273
1267
  </span> <span class='comment'>#
1274
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
1268
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
1275
1269
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
1276
1270
  </span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
1277
1271
  </span> <span class='comment'># @return [Application] The unique (singleton) instance of the application.
@@ -1538,8 +1532,7 @@
1538
1532
  429
1539
1533
  430
1540
1534
  431
1541
- 432
1542
- 433</pre>
1535
+ 432</pre>
1543
1536
  </td>
1544
1537
  <td>
1545
1538
  <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 271</span>
@@ -1555,7 +1548,7 @@
1555
1548
 
1556
1549
  <span class='comment'># Creates a new application.
1557
1550
  </span> <span class='comment'>#
1558
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
1551
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
1559
1552
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
1560
1553
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
1561
1554
  <span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:akaer</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1565,8 +1558,7 @@
1565
1558
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_get_options'>get_options</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='rbrace'>}</span>
1566
1559
 
1567
1560
  <span class='comment'># Setup logger
1568
- </span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
1569
- <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
1561
+ </span> <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>log_file</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span><span class='comma'>,</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
1570
1562
 
1571
1563
  <span class='comment'># Open configuration
1572
1564
  </span> <span class='id identifier rubyid_read_configuration'>read_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -1650,7 +1642,7 @@
1650
1642
 
1651
1643
  <span class='comment'># Returns a unique (singleton) instance of the application.
1652
1644
  </span> <span class='comment'>#
1653
- </span> <span class='comment'># @param command [Mamertes::Command] The current Mamertes command.
1645
+ </span> <span class='comment'># @param command [Bovem::Command] The current Bovem command.
1654
1646
  </span> <span class='comment'># @param locale [Symbol] The locale to use for the application.
1655
1647
  </span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
1656
1648
  </span> <span class='comment'># @return [Application] The unique (singleton) instance of the application.
@@ -1786,12 +1778,12 @@
1786
1778
  <span class='name'>command</span>
1787
1779
 
1788
1780
 
1789
- <span class='type'>(<tt>Mamertes::Command</tt>)</span>
1781
+ <span class='type'>(<tt>Bovem::Command</tt>)</span>
1790
1782
 
1791
1783
 
1792
1784
 
1793
1785
  &mdash;
1794
- <div class='inline'><p>The current Mamertes command.</p>
1786
+ <div class='inline'><p>The current Bovem command.</p>
1795
1787
  </div>
1796
1788
 
1797
1789
  </li>
@@ -1856,13 +1848,13 @@
1856
1848
  <pre class="lines">
1857
1849
 
1858
1850
 
1851
+ 380
1859
1852
  381
1860
1853
  382
1861
- 383
1862
- 384</pre>
1854
+ 383</pre>
1863
1855
  </td>
1864
1856
  <td>
1865
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 381</span>
1857
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 380</span>
1866
1858
 
1867
1859
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_force'>force</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1868
1860
  <span class='ivar'>@instance</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_force'>force</span>
@@ -1942,13 +1934,13 @@
1942
1934
  <pre class="lines">
1943
1935
 
1944
1936
 
1937
+ 369
1945
1938
  370
1946
1939
  371
1947
- 372
1948
- 373</pre>
1940
+ 372</pre>
1949
1941
  </td>
1950
1942
  <td>
1951
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 370</span>
1943
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 369</span>
1952
1944
 
1953
1945
  <span class='kw'>def</span> <span class='id identifier rubyid_compute_addresses'>compute_addresses</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='symbol'>:all</span><span class='rparen'>)</span>
1954
1946
  <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
@@ -2020,12 +2012,12 @@
2020
2012
  <pre class="lines">
2021
2013
 
2022
2014
 
2015
+ 361
2023
2016
  362
2024
- 363
2025
- 364</pre>
2017
+ 363</pre>
2026
2018
  </td>
2027
2019
  <td>
2028
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 362</span>
2020
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 361</span>
2029
2021
 
2030
2022
  <span class='kw'>def</span> <span class='id identifier rubyid_execute_command'>execute_command</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
2031
2023
  <span class='const'>Kernel</span><span class='period'>.</span><span class='id identifier rubyid_system'>system</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
@@ -2077,12 +2069,12 @@
2077
2069
  <pre class="lines">
2078
2070
 
2079
2071
 
2072
+ 345
2080
2073
  346
2081
- 347
2082
- 348</pre>
2074
+ 347</pre>
2083
2075
  </td>
2084
2076
  <td>
2085
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 346</span>
2077
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 345</span>
2086
2078
 
2087
2079
  <span class='kw'>def</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
2088
2080
  <span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</span><span class='comma'>,</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_log_level'>log_level</span><span class='comma'>,</span> <span class='ivar'>@log_formatter</span><span class='rparen'>)</span>
@@ -2153,15 +2145,15 @@
2153
2145
  <pre class="lines">
2154
2146
 
2155
2147
 
2148
+ 304
2156
2149
  305
2157
2150
  306
2158
2151
  307
2159
2152
  308
2160
- 309
2161
- 310</pre>
2153
+ 309</pre>
2162
2154
  </td>
2163
2155
  <td>
2164
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 305</span>
2156
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 304</span>
2165
2157
 
2166
2158
  <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv4?'>is_ipv4?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
2167
2159
  <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
@@ -2235,6 +2227,7 @@
2235
2227
  <pre class="lines">
2236
2228
 
2237
2229
 
2230
+ 315
2238
2231
  316
2239
2232
  317
2240
2233
  318
@@ -2249,11 +2242,10 @@
2249
2242
  327
2250
2243
  328
2251
2244
  329
2252
- 330
2253
- 331</pre>
2245
+ 330</pre>
2254
2246
  </td>
2255
2247
  <td>
2256
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 316</span>
2248
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 315</span>
2257
2249
 
2258
2250
  <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv6?'>is_ipv6?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
2259
2251
  <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
@@ -2339,12 +2331,12 @@
2339
2331
  <pre class="lines">
2340
2332
 
2341
2333
 
2334
+ 353
2342
2335
  354
2343
- 355
2344
- 356</pre>
2336
+ 355</pre>
2345
2337
  </td>
2346
2338
  <td>
2347
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 354</span>
2339
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 353</span>
2348
2340
 
2349
2341
  <span class='kw'>def</span> <span class='id identifier rubyid_launch_agent_path'>launch_agent_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>it.cowtech.akaer</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
2350
2342
  <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>HOME</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/Library/LaunchAgents/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>.plist</span><span class='tstring_end'>&quot;</span></span>
@@ -2432,12 +2424,12 @@
2432
2424
  <pre class="lines">
2433
2425
 
2434
2426
 
2427
+ 338
2435
2428
  339
2436
- 340
2437
- 341</pre>
2429
+ 340</pre>
2438
2430
  </td>
2439
2431
  <td>
2440
- <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 339</span>
2432
+ <pre class="code"><span class="info file"># File 'lib/akaer/application.rb', line 338</span>
2441
2433
 
2442
2434
  <span class='kw'>def</span> <span class='id identifier rubyid_pad_number'>pad_number</span><span class='lparen'>(</span><span class='id identifier rubyid_num'>num</span><span class='comma'>,</span> <span class='id identifier rubyid_len'>len</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2443
2435
  <span class='id identifier rubyid_num'>num</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_len'>len</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='comma'>,</span> <span class='int'>2</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -2452,7 +2444,7 @@
2452
2444
  </div>
2453
2445
 
2454
2446
  <div id="footer">
2455
- Generated on Sat Jul 20 15:44:46 2013 by
2447
+ Generated on Sun Aug 11 15:51:59 2013 by
2456
2448
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2457
2449
  0.8.6.2 (ruby-1.9.3).
2458
2450
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sat Jul 20 15:44:45 2013 by
119
+ Generated on Sun Aug 11 15:51:58 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.6.2 (ruby-1.9.3).
122
122
  </div>
@@ -356,7 +356,7 @@
356
356
  </div>
357
357
 
358
358
  <div id="footer">
359
- Generated on Sat Jul 20 15:44:45 2013 by
359
+ Generated on Sun Aug 11 15:51:58 2013 by
360
360
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
361
361
  0.8.6.2 (ruby-1.9.3).
362
362
  </div>
@@ -447,7 +447,7 @@
447
447
  </div>
448
448
 
449
449
  <div id="footer">
450
- Generated on Sat Jul 20 15:44:45 2013 by
450
+ Generated on Sun Aug 11 15:51:58 2013 by
451
451
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
452
452
  0.8.6.2 (ruby-1.9.3).
453
453
  </div>
@@ -273,7 +273,7 @@
273
273
  </div>
274
274
 
275
275
  <div id="footer">
276
- Generated on Sat Jul 20 15:44:46 2013 by
276
+ Generated on Sun Aug 11 15:51:59 2013 by
277
277
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
278
278
  0.8.6.2 (ruby-1.9.3).
279
279
  </div>
@@ -134,7 +134,7 @@
134
134
 
135
135
  </div>
136
136
  </dt>
137
- <dd><pre class="code"><span class='int'>3</span></pre></dd>
137
+ <dd><pre class="code"><span class='int'>4</span></pre></dd>
138
138
 
139
139
  <dt id="PATCH-constant" class="">PATCH =
140
140
  <div class="docstring">
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>1</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>0</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Sat Jul 20 15:44:45 2013 by
183
+ Generated on Sun Aug 11 15:51:58 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.6.2 (ruby-1.9.3).
186
186
  </div>
data/doc/_index.html CHANGED
@@ -175,7 +175,7 @@
175
175
  </div>
176
176
 
177
177
  <div id="footer">
178
- Generated on Sat Jul 20 15:44:45 2013 by
178
+ Generated on Sun Aug 11 15:51:58 2013 by
179
179
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
180
180
  0.8.6.2 (ruby-1.9.3).
181
181
  </div>
data/doc/file.README.html CHANGED
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
6
  <title>
7
7
  File: README
8
8
 
@@ -64,7 +64,6 @@
64
64
  <div id="content"><div id='filecontents'><h1 id="akaer">akaer</h1>
65
65
 
66
66
  <p><a href="http://badge.fury.io/rb/akaer"><img src="https://badge.fury.io/rb/akaer.png" alt="Gem Version" /></a>
67
- <a href="https://gemnasium.com/ShogunPanda/akaer"><img src="https://gemnasium.com/ShogunPanda/akaer.png?travis" alt="Dependency Status" /></a>
68
67
  <a href="http://travis-ci.org/ShogunPanda/akaer"><img src="https://secure.travis-ci.org/ShogunPanda/akaer.png?branch=master" alt="Build Status" /></a>
69
68
  <a href="https://codeclimate.com/github/ShogunPanda/akaer"><img src="https://codeclimate.com/github/ShogunPanda/akaer.png" alt="Code Climate" /></a>
70
69
  <a href="https://coveralls.io/r/ShogunPanda/akaer"><img src="https://coveralls.io/repos/ShogunPanda/akaer/badge.png" alt="Coverage Status" /></a></p>
@@ -75,67 +74,11 @@
75
74
 
76
75
  <p>http://rdoc.info/gems/akaer</p>
77
76
 
78
- <h2 id="description">Description</h2>
77
+ <h2 id="end-of-development-notice">END OF DEVELOPMENT NOTICE</h2>
79
78
 
80
- <p>Akaer is a small utility that adds and removes aliases to your network interfaces. This is useful in web development.</p>
79
+ <h1 id="this-gem-has-been-discontinued"> This gem has been discontinued.</h1>
81
80
 
82
- <h2 id="basic-usage">Basic usage</h2>
83
-
84
- <ol>
85
- <li>Install the gem:</li>
86
- </ol>
87
-
88
- ```sh
89
- <pre class="code ruby"><code class="ruby">gem install akaer
90
- ```
91
- </code></pre>
92
-
93
- <ol>
94
- <li>
95
- <p>Run the application:</p>
96
-
97
- <p><code>sh
98
- akaer
99
- </code></p>
100
- </li>
101
- </ol>
102
-
103
- <p><strong>You&#8217;re done!</strong></p>
104
-
105
- <h2 id="advanced-usage">Advanced usage</h2>
106
-
107
- <p>Just type <code>akaer --help</code> and you&#8217;ll see all available options.</p>
108
-
109
- <h2 id="configuration">Configuration</h2>
110
-
111
- <p>By defaults, Akaer uses a configuration file in <code>~/.akaer_config</code>, but you can change the path using the <code>--config</code> switch.</p>
112
-
113
- <p>The file is a plain Ruby file with a single <code>config</code> object that supports the following directives.</p>
114
-
115
- <ul>
116
- <li><code>interface</code>: The network interface to manage. <code>lo0</code> by default.</li>
117
- <li><code>addresses</code>: A specific list of aliases to manage.</li>
118
- <li><code>start_address</code>: The address to start sequential address. <code>10.0.0.1</code> by default. Not used if <code>addresses</code> is specified.</li>
119
- <li><code>aliases</code>: The number of sequential addresses to add. 5 by default.</li>
120
- <li><code>add_command</code>: The command to run for adding an alias. <code>sudo ifconfig {{interface}} alias {{address}}</code> by default.</li>
121
- <li><code>remove_command</code>: The command to run for removing an alias. <code>sudo ifconfig {{interface}} -alias {{address}}</code> by default.</li>
122
- <li><code>log_file</code>: The default log file. By default it logs to standard output.</li>
123
- <li><code>log_level</code>: The default log level. Valid values are from 0 to 5 where 0 means &#8220;all messages&#8221;.</li>
124
- <li><code>dry_run</code>: Only show which modifications will be done.</li>
125
- <li><code>quiet</code>: Do not show any message.</li>
126
- </ul>
127
-
128
- <h2 id="contributing-to-akaer">Contributing to akaer</h2>
129
-
130
- <ul>
131
- <li>Check out the latest master to make sure the feature hasn&#8217;t been implemented or the bug hasn&#8217;t been fixed yet.</li>
132
- <li>Check out the issue tracker to make sure someone already hasn&#8217;t requested it and/or contributed it.</li>
133
- <li>Fork the project.</li>
134
- <li>Start a feature/bugfix branch.</li>
135
- <li>Commit and push until you are happy with your contribution.</li>
136
- <li>Make sure to add tests for it. This is important so I don&#8217;t break it in a future version unintentionally.</li>
137
- <li>Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.</li>
138
- </ul>
81
+ <h3 id="since-version-300-all-its-functionalities-are-merged-in-devdnsdhttpswcowtcdevdnsd">Since version 3.0.0, all its functionalities are merged in <a href="http://sw.cow.tc/devdnsd">devdnsd</a>.</h3>
139
82
 
140
83
  <h2 id="copyright">Copyright</h2>
141
84
 
@@ -145,7 +88,7 @@
145
88
  </div></div>
146
89
 
147
90
  <div id="footer">
148
- Generated on Sat Jul 20 15:44:45 2013 by
91
+ Generated on Sun Aug 11 15:51:58 2013 by
149
92
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
150
93
  0.8.6.2 (ruby-1.9.3).
151
94
  </div>
data/doc/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
6
  <title>
7
7
  File: README
8
8
 
@@ -64,7 +64,6 @@
64
64
  <div id="content"><div id='filecontents'><h1 id="akaer">akaer</h1>
65
65
 
66
66
  <p><a href="http://badge.fury.io/rb/akaer"><img src="https://badge.fury.io/rb/akaer.png" alt="Gem Version" /></a>
67
- <a href="https://gemnasium.com/ShogunPanda/akaer"><img src="https://gemnasium.com/ShogunPanda/akaer.png?travis" alt="Dependency Status" /></a>
68
67
  <a href="http://travis-ci.org/ShogunPanda/akaer"><img src="https://secure.travis-ci.org/ShogunPanda/akaer.png?branch=master" alt="Build Status" /></a>
69
68
  <a href="https://codeclimate.com/github/ShogunPanda/akaer"><img src="https://codeclimate.com/github/ShogunPanda/akaer.png" alt="Code Climate" /></a>
70
69
  <a href="https://coveralls.io/r/ShogunPanda/akaer"><img src="https://coveralls.io/repos/ShogunPanda/akaer/badge.png" alt="Coverage Status" /></a></p>
@@ -75,67 +74,11 @@
75
74
 
76
75
  <p>http://rdoc.info/gems/akaer</p>
77
76
 
78
- <h2 id="description">Description</h2>
77
+ <h2 id="end-of-development-notice">END OF DEVELOPMENT NOTICE</h2>
79
78
 
80
- <p>Akaer is a small utility that adds and removes aliases to your network interfaces. This is useful in web development.</p>
79
+ <h1 id="this-gem-has-been-discontinued"> This gem has been discontinued.</h1>
81
80
 
82
- <h2 id="basic-usage">Basic usage</h2>
83
-
84
- <ol>
85
- <li>Install the gem:</li>
86
- </ol>
87
-
88
- ```sh
89
- <pre class="code ruby"><code class="ruby">gem install akaer
90
- ```
91
- </code></pre>
92
-
93
- <ol>
94
- <li>
95
- <p>Run the application:</p>
96
-
97
- <p><code>sh
98
- akaer
99
- </code></p>
100
- </li>
101
- </ol>
102
-
103
- <p><strong>You&#8217;re done!</strong></p>
104
-
105
- <h2 id="advanced-usage">Advanced usage</h2>
106
-
107
- <p>Just type <code>akaer --help</code> and you&#8217;ll see all available options.</p>
108
-
109
- <h2 id="configuration">Configuration</h2>
110
-
111
- <p>By defaults, Akaer uses a configuration file in <code>~/.akaer_config</code>, but you can change the path using the <code>--config</code> switch.</p>
112
-
113
- <p>The file is a plain Ruby file with a single <code>config</code> object that supports the following directives.</p>
114
-
115
- <ul>
116
- <li><code>interface</code>: The network interface to manage. <code>lo0</code> by default.</li>
117
- <li><code>addresses</code>: A specific list of aliases to manage.</li>
118
- <li><code>start_address</code>: The address to start sequential address. <code>10.0.0.1</code> by default. Not used if <code>addresses</code> is specified.</li>
119
- <li><code>aliases</code>: The number of sequential addresses to add. 5 by default.</li>
120
- <li><code>add_command</code>: The command to run for adding an alias. <code>sudo ifconfig {{interface}} alias {{address}}</code> by default.</li>
121
- <li><code>remove_command</code>: The command to run for removing an alias. <code>sudo ifconfig {{interface}} -alias {{address}}</code> by default.</li>
122
- <li><code>log_file</code>: The default log file. By default it logs to standard output.</li>
123
- <li><code>log_level</code>: The default log level. Valid values are from 0 to 5 where 0 means &#8220;all messages&#8221;.</li>
124
- <li><code>dry_run</code>: Only show which modifications will be done.</li>
125
- <li><code>quiet</code>: Do not show any message.</li>
126
- </ul>
127
-
128
- <h2 id="contributing-to-akaer">Contributing to akaer</h2>
129
-
130
- <ul>
131
- <li>Check out the latest master to make sure the feature hasn&#8217;t been implemented or the bug hasn&#8217;t been fixed yet.</li>
132
- <li>Check out the issue tracker to make sure someone already hasn&#8217;t requested it and/or contributed it.</li>
133
- <li>Fork the project.</li>
134
- <li>Start a feature/bugfix branch.</li>
135
- <li>Commit and push until you are happy with your contribution.</li>
136
- <li>Make sure to add tests for it. This is important so I don&#8217;t break it in a future version unintentionally.</li>
137
- <li>Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.</li>
138
- </ul>
81
+ <h3 id="since-version-300-all-its-functionalities-are-merged-in-devdnsdhttpswcowtcdevdnsd">Since version 3.0.0, all its functionalities are merged in <a href="http://sw.cow.tc/devdnsd">devdnsd</a>.</h3>
139
82
 
140
83
  <h2 id="copyright">Copyright</h2>
141
84
 
@@ -145,7 +88,7 @@
145
88
  </div></div>
146
89
 
147
90
  <div id="footer">
148
- Generated on Sat Jul 20 15:44:45 2013 by
91
+ Generated on Sun Aug 11 15:51:58 2013 by
149
92
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
150
93
  0.8.6.2 (ruby-1.9.3).
151
94
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sat Jul 20 15:44:45 2013 by
106
+ Generated on Sun Aug 11 15:51:58 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.6.2 (ruby-1.9.3).
109
109
  </div>
data/lib/akaer.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
7
- require "mamertes"
7
+ require "bovem"
8
8
  require "mustache"
9
9
  require "ipaddr"
10
10
 
@@ -265,7 +265,7 @@ module Akaer
265
265
  # @attribute config
266
266
  # @return [Configuration] The {Configuration Configuration} of this application.
267
267
  # @attribute command
268
- # @return [Mamertes::Command] The Mamertes command.
268
+ # @return [Bovem::Command] The Bovem command.
269
269
  # @attribute
270
270
  # @return [Bovem::Logger] logger The logger for this application.
271
271
  class Application
@@ -279,7 +279,7 @@ module Akaer
279
279
 
280
280
  # Creates a new application.
281
281
  #
282
- # @param command [Mamertes::Command] The current Mamertes command.
282
+ # @param command [Bovem::Command] The current Bovem command.
283
283
  # @param locale [Symbol] The locale to use for the application.
284
284
  def initialize(command, locale)
285
285
  i18n_setup(:akaer, ::File.absolute_path(::Pathname.new(::File.dirname(__FILE__)).to_s + "/../../locales/"))
@@ -289,7 +289,6 @@ module Akaer
289
289
  options = @command.application.get_options.reject {|_, v| v.nil? }
290
290
 
291
291
  # Setup logger
292
- Bovem::Logger.start_time = Time.now
293
292
  @logger = Bovem::Logger.create(Bovem::Logger.get_real_file(options["log_file"]) || Bovem::Logger.default_file, Logger::INFO)
294
293
 
295
294
  # Open configuration
@@ -374,7 +373,7 @@ module Akaer
374
373
 
375
374
  # Returns a unique (singleton) instance of the application.
376
375
  #
377
- # @param command [Mamertes::Command] The current Mamertes command.
376
+ # @param command [Bovem::Command] The current Bovem command.
378
377
  # @param locale [Symbol] The locale to use for the application.
379
378
  # @param force [Boolean] If to force recreation of the instance.
380
379
  # @return [Application] The unique (singleton) instance of the application.
data/lib/akaer/version.rb CHANGED
@@ -13,10 +13,10 @@ module Akaer
13
13
  MAJOR = 2
14
14
 
15
15
  # The minor version.
16
- MINOR = 3
16
+ MINOR = 4
17
17
 
18
18
  # The patch version.
19
- PATCH = 1
19
+ PATCH = 0
20
20
 
21
21
  # The current version of akaer.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -8,7 +8,7 @@ require "spec_helper"
8
8
 
9
9
  describe Akaer::Application do
10
10
  def create_application(overrides)
11
- mamertes_app = Mamertes::App(run: false) do
11
+ mamertes_app = Bovem::Application.create(run: false) do
12
12
  option :configuration, [], {type: String, default: overrides["configuration"] || "/dev/null"}
13
13
  option :interface, [], {type: String, default: overrides["interface"] || "lo0"}
14
14
  option :addresses, [], {type: Array, default: overrides["addresses"] || []}
@@ -369,4 +369,4 @@ describe Akaer::Application do
369
369
  expect(application.action_uninstall).to be_false
370
370
  end
371
371
  end
372
- end
372
+ end
@@ -8,7 +8,7 @@ require "pathname"
8
8
  require "simplecov"
9
9
  require "coveralls"
10
10
 
11
- Coveralls.wear!
11
+ Coveralls.wear! if ENV["CI"] || ENV["JENKINS_URL"]
12
12
 
13
13
  SimpleCov.start do
14
14
  root = Pathname.new(File.dirname(__FILE__)) + ".."
@@ -17,4 +17,4 @@ SimpleCov.start do
17
17
  path = Pathname.new(src_file.filename).relative_path_from(root).to_s
18
18
  path !~ /^(bin|lib)/
19
19
  end
20
- end
20
+ end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akaer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
5
- prerelease:
4
+ version: 2.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shogun
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-20 00:00:00.000000000 Z
11
+ date: 2013-08-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: mamertes
14
+ name: bovem
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 2.3.0
19
+ version: 3.0.2
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 2.3.0
26
+ version: 3.0.2
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mustache
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -93,30 +88,26 @@ files:
93
88
  - spec/spec_helper.rb
94
89
  homepage: http://sw.cow.tc/akaer
95
90
  licenses: []
91
+ metadata: {}
96
92
  post_install_message:
97
93
  rdoc_options: []
98
94
  require_paths:
99
95
  - lib
100
96
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
97
  requirements:
103
98
  - - ! '>='
104
99
  - !ruby/object:Gem::Version
105
100
  version: 1.9.3
106
101
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
102
  requirements:
109
103
  - - ! '>='
110
104
  - !ruby/object:Gem::Version
111
105
  version: '0'
112
- segments:
113
- - 0
114
- hash: -4061304892127088428
115
106
  requirements: []
116
107
  rubyforge_project: akaer
117
- rubygems_version: 1.8.25
108
+ rubygems_version: 2.0.5
118
109
  signing_key:
119
- specification_version: 3
110
+ specification_version: 4
120
111
  summary: A small utility to add aliases to network interfaces.
121
112
  test_files:
122
113
  - spec/akaer/application_spec.rb