Class: Amnesie::Persist::WpaSupplicant
- Inherits:
-
Object
- Object
- Amnesie::Persist::WpaSupplicant
- Defined in:
- lib/amnesie/persist/wpa_supplicant.rb
Instance Method Summary collapse
- #apply_cards ⇒ Object
-
#initialize ⇒ WpaSupplicant
constructor
A new instance of WpaSupplicant.
Constructor Details
#initialize ⇒ WpaSupplicant
Returns a new instance of WpaSupplicant.
7 8 9 10 11 |
# File 'lib/amnesie/persist/wpa_supplicant.rb', line 7 def initialize @cards = Network.new(/wl^/, nil).search @tmp = Tempfile.new("main.conf") apply_cards end |
Instance Method Details
#apply_cards ⇒ Object
13 14 15 16 17 |
# File 'lib/amnesie/persist/wpa_supplicant.rb', line 13 def apply_cards @cards.each { |card| apply(card) } end |