diff options
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/input/http.rb | 5 | ||||
-rw-r--r-- | lib/oxidized/model/cambium.rb | 1 | ||||
-rw-r--r-- | lib/oxidized/string.rb | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/lib/oxidized/input/http.rb b/lib/oxidized/input/http.rb index c7767b3..77ea44e 100644 --- a/lib/oxidized/input/http.rb +++ b/lib/oxidized/input/http.rb @@ -22,8 +22,8 @@ module Oxidized login end - def cmd cb - instance_exec(&cb) + def cmd callback + instance_exec(&callback) end private @@ -36,6 +36,5 @@ module Oxidized ensure @log.close if Oxidized.config.input.debug? end - end end diff --git a/lib/oxidized/model/cambium.rb b/lib/oxidized/model/cambium.rb index 230282c..fe1f3c2 100644 --- a/lib/oxidized/model/cambium.rb +++ b/lib/oxidized/model/cambium.rb @@ -1,5 +1,4 @@ class Cambium < Oxidized::Model - cfg_cb = lambda do c_page = @m.click @m_page.link_with(text: "Configuration") u_page = @m.click c_page.link_with(text: "Unit Settings") diff --git a/lib/oxidized/string.rb b/lib/oxidized/string.rb index 87250c1..9c09f61 100644 --- a/lib/oxidized/string.rb +++ b/lib/oxidized/string.rb @@ -16,7 +16,7 @@ module Oxidized # sets @cmd and @name unless @name is already set def set_cmd command @cmd = command - @name ||= @cmd.to_s.strip.gsub(/\s+/, '_') # what to do when command is proc? #to_s seems ghetto + @name ||= @cmd.to_s.strip.gsub(/\s+/, '_') # what to do when command is proc? #to_s seems ghetto end def initialize str = '' |