Class: FSR::Cmd::Reload

Inherits:
Command show all
Defined in:
lib/fsr/cmd/reload.rb

Constant Summary

Constants inherited from Command

DEFAULT_OPTIONS

Instance Method Summary (collapse)

Methods inherited from Command

#default_options

Constructor Details

- (Reload) initialize(mod, args = {})

A new instance of Reload



5
6
7
8
# File 'lib/fsr/cmd/reload.rb', line 5

def initialize(mod, args={})
  @module = mod
  @force = "-f" if args[:force] 
end

Instance Method Details

- (Object) arguments



10
11
12
# File 'lib/fsr/cmd/reload.rb', line 10

def arguments
  [@force, @module].compact
end