lib/ronin/exploits/cli/commands/run.rb in ronin-exploits-1.0.1 vs lib/ronin/exploits/cli/commands/run.rb in ronin-exploits-1.0.2

- old
+ new

@@ -232,16 +232,16 @@ # @return [Hash{String => Hash{String => String}}] attr_reader :encoder_params # The payload params. # - # @return [Hash{Hash{String => String}] + # @return [Hash{String => String}] attr_reader :payload_params # The keyword arguments to select a target with. # - # @return [Hash{Hash{Symbol => Object}] + # @return [Hash{Symbol => Object}] attr_reader :target_kwargs # # Initializes the `ronin-exploits run` command. # @@ -289,11 +289,13 @@ # `--encoder-file`. # def load_encoders @encoder_classes = @encoders_to_load.map do |(type,value)| case type - in :name then load_encoder(value) - in :file then load_encoder_from(value) + when :name then load_encoder(value) + when :file then load_encoder_from(value) + else + raise(NotImplementedError,"invalid encoder type: #{type.inspect}") end end end #