Class: Mysqlknife::Log
- Inherits:
-
Object
- Object
- Mysqlknife::Log
- Defined in:
- lib/mysqlknife/log.rb
Instance Attribute Summary collapse
-
#verbose ⇒ Object
writeonly
Sets the attribute verbose.
Instance Method Summary collapse
- #command(command) ⇒ Object
-
#initialize ⇒ Log
constructor
A new instance of Log.
Constructor Details
#initialize ⇒ Log
Returns a new instance of Log.
7 8 9 |
# File 'lib/mysqlknife/log.rb', line 7 def initialize @log = Logger.new(STDOUT) end |
Instance Attribute Details
#verbose=(value) ⇒ Object (writeonly)
Sets the attribute verbose
5 6 7 |
# File 'lib/mysqlknife/log.rb', line 5 def verbose=(value) @verbose = value end |
Instance Method Details
#command(command) ⇒ Object
11 12 13 |
# File 'lib/mysqlknife/log.rb', line 11 def command(command) @log.debug("Bash Command: #{command}") if $DEBUG end |