Class: EnvCommand
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
all, #description, #execute, inherited, #initialize, load, #name, #usage
Constructor Details
This class inherits a constructor from Command
Instance Method Details
#run ⇒ Object
341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/replicant/command.rb', line 341 def run env = "Package: #{@repl.default_package || 'Not set'}\n" env << "Device: " device = @repl.default_device env << if device "#{device.name} (#{device.id})" else 'Not set' end output env end |
#valid_args? ⇒ Boolean
337 338 339 |
# File 'lib/replicant/command.rb', line 337 def valid_args? args.blank? end |