Class: Fixingthenet::Installer::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/fixingthenet/installer/command.rb

Direct Known Subclasses

InstallCommand, UninstallCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_options, args = []) ⇒ Command

Returns a new instance of Command.



8
9
10
11
12
13
14
15
16
# File 'lib/fixingthenet/installer/command.rb', line 8

def initialize(_options, args=[])
  @options=_options
  @args=args
  parse_options unless args.empty?

  @app=App.new(options)
  puts "options: #{options}" if options[:verbose]
  command
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



6
7
8
# File 'lib/fixingthenet/installer/command.rb', line 6

def app
  @app
end

#argsObject (readonly)

Returns the value of attribute args.



4
5
6
# File 'lib/fixingthenet/installer/command.rb', line 4

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/fixingthenet/installer/command.rb', line 5

def options
  @options
end