Class: Lynx::Command::Dump

Inherits:
Basic
  • Object
show all
Defined in:
lib/lynx/command/dump.rb

Instance Attribute Summary

Attributes inherited from Basic

#config

Instance Method Summary collapse

Methods inherited from Basic

#authorize, instruct, #to_s

Constructor Details

#initialize(*args) ⇒ Dump

Returns a new instance of Dump.



6
7
8
9
10
# File 'lib/lynx/command/dump.rb', line 6

def initialize(*args)
  super(*args)

  dump
end

Instance Method Details

#database(*args) ⇒ Object



15
16
17
18
19
20
# File 'lib/lynx/command/dump.rb', line 15

def database(*args)
  @command << '--databases' unless args.empty?
  @command += args

  self
end

#table(*args) ⇒ Object



22
23
24
25
26
27
# File 'lib/lynx/command/dump.rb', line 22

def table(*args)
  @command << '--tables' unless args.empty?
  @command += args

  self
end