Skip to content

Commit

Permalink
Use logger.info instead of puts
Browse files Browse the repository at this point in the history
  • Loading branch information
jschementi committed May 25, 2008
1 parent 992767c commit dd33fbc
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -3,6 +3,10 @@
require "filesystemwatcher"
require 'silverline/essential/xap'

def logger
RAILS_DEFAULT_LOGGER
end

# Generates the XAP on modification of watched files
module Silverline::Essential::Generator
include Silverline
Expand All @@ -11,7 +15,6 @@ module Silverline::Essential::Generator
# List of files/directories to watch for modification.
# Triggers generation of the Silverlight package (XAP)
def self.register
puts "** Initializing Silverlight"
watcher = FileSystemWatcher.new
watcher.addDirectory CLIENT_ROOT
watcher.addDirectory PLUGIN_CLIENT
Expand All @@ -28,7 +31,7 @@ def self.register
end

def self.generate
puts "** Generating client.xap"
logger.info "Silverline: Generating client.xap"
%W(#{XAP_FILE}).each do |file|
File.delete(file) if File.exists?(file)
end
Expand Down

0 comments on commit dd33fbc

Please sign in to comment.