Class: ResetCommand

Inherits:
Command show all
Defined in:
lib/replicant/command.rb

Instance Attribute Summary

Attributes inherited from Command

#args

Instance Method Summary collapse

Methods inherited from Command

all, #execute, inherited, #initialize, load, #name, #usage

Constructor Details

This class inherits a constructor from Command

Instance Method Details

#descriptionObject



240
241
242
# File 'lib/replicant/command.rb', line 240

def description
  "clear current device and package"
end

#runObject



248
249
250
251
# File 'lib/replicant/command.rb', line 248

def run
  @repl.default_device = nil
  @repl.default_package = nil
end

#valid_args?Boolean

Returns:

  • (Boolean)


244
245
246
# File 'lib/replicant/command.rb', line 244

def valid_args?
  args.blank?
end