lib/pg_objects/logger.rb in pg_objects-1.2.0 vs lib/pg_objects/logger.rb in pg_objects-1.2.1
- old
+ new
@@ -1,20 +1,10 @@
##
# Console output
#
class PgObjects::Logger
- attr_reader :silent
+ include Import['config']
- def initialize
- @silent = false
- end
-
def write(str)
- puts "== #{str} ".ljust(80, '=') unless silent
- end
-
- def mute(value)
- @silent = value
-
- self
+ puts "== #{str} ".ljust(80, '=') unless config.silent
end
end