Skip to content

Commit

Permalink
As requested make rake logging available.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Jan 23, 2012
1 parent 8a1032a commit 384eff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions padrino-core/lib/padrino-core/cli/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def stop
method_option :environment, :type => :string, :aliases => "-e", :required => true, :default => :development
method_option :list, :type => :string, :aliases => "-T", :desc => "Display the tasks (matching optional PATTERN) with descriptions, then exit."
method_option :trace, :type => :boolean, :aliases => "-t", :desc => "Turn on invoke/execute tracing, enable full backtrace."
method_option :verbose, :type => :boolean, :aliases => "-v", :desc => "Log message to standard output."
def rake(*args)
prepare :rake
args << "-T" if options[:list]
Expand All @@ -51,9 +50,8 @@ def rake(*args)
ARGV.clear
ARGV.concat(args)
puts "=> Executing Rake #{ARGV.join(' ')} ..."
ENV['PADRINO_LOG_LEVEL'] ||= options[:verbose] ? 'development' : 'test'
load File.expand_path('../rake.rb', __FILE__)
silence(:stdout) { require File.expand_path('config/boot.rb') }
require File.expand_path('config/boot.rb')
PadrinoTasks.init(true)
end

Expand Down
2 changes: 1 addition & 1 deletion padrino/padrino.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.description = "The Godfather of Sinatra provides a full-stack agnostic framework on top of Sinatra"
s.required_rubygems_version = ">= 1.3.6"
s.version = Padrino.version
s.platform = Gem::Platform::RUBY
s.platform = Gem::Platform::RUBY
s.date = Time.now.strftime("%Y-%m-%d")

s.extra_rdoc_files = Dir["*.rdoc"]
Expand Down

0 comments on commit 384eff5

Please sign in to comment.