lib/ayadn/switch.rb in ayadn-3.0 vs lib/ayadn/switch.rb in ayadn-4.0

- old
+ new

@@ -1,10 +1,10 @@ # encoding: utf-8 module Ayadn class Switch - def initialize - @status = Status.new + def initialize status = Status.new + @status = status begin @acc_db = Amalgalite::Database.new(Dir.home + "/ayadn/accounts.sqlite") rescue Amalgalite::SQLite3::Error => e @status.not_authorized exit