Class: Strike
- Inherits:
-
Thor
show all
- Includes:
- Thor::Actions
- Defined in:
- lib/strike.rb,
lib/strike/table.rb,
lib/strike/dumper.rb,
lib/strike/obfuscator.rb,
lib/strike/interpreter.rb
Defined Under Namespace
Classes: Dumper, Interpreter, Obfuscator, Table
Instance Method Summary
collapse
Instance Method Details
#dump(database_url) ⇒ Object
56
57
58
59
60
61
62
63
64
|
# File 'lib/strike.rb', line 56
def dump(database_url)
with_profile do |profile|
with_output do |output|
Dumper.new.call(self, database_url) do |dump_file|
_obfuscate(profile, dump_file, output)
end
end
end
end
|
#obfuscate ⇒ Object
98
99
100
101
102
103
104
105
106
|
# File 'lib/strike.rb', line 98
def obfuscate
with_profile do |profile|
with_input do |input|
with_output do |output|
_obfuscate(profile, input, output)
end
end
end
end
|
#version ⇒ Object
25
26
27
|
# File 'lib/strike.rb', line 25
def version
$stdout.puts "v#{IO.read(File.expand_path('../../VERSION', __FILE__))}"
end
|