class WhirledPeas::Command::FrameCommand
Attributes
frame[R]
frame_args[R]
Private Instance Methods
options_usage()
click to toggle source
# File lib/whirled_peas/command/frame_command.rb, line 29 def options_usage "#{super} <frame> [args as a JSON string]" end
validate!()
click to toggle source
Calls superclass method
WhirledPeas::Command::ConfigCommand#validate!
# File lib/whirled_peas/command/frame_command.rb, line 10 def validate! super frame = args.shift raw_args = args.shift if frame.nil? @error_text = "#{command_name} requires a frame name" else @frame = frame @frame_args = {} return if raw_args.nil? require 'json' JSON.parse(raw_args || '{}').each do |key, value| @frame_args[key.to_sym] = value end end end