Class: Amnesie::Persist::WpaSupplicant

Inherits:
Object
  • Object
show all
Defined in:
lib/amnesie/persist/wpa_supplicant.rb

Instance Method Summary collapse

Constructor Details

#initializeWpaSupplicant

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_cardsObject



13
14
15
16
17
# File 'lib/amnesie/persist/wpa_supplicant.rb', line 13

def apply_cards
  @cards.each { |card|
    apply(card)
  }
end