Sha256: d1aaed61e285eec1061c9f5ad1e7d9060121f97c6723d78aaaffaf028365b13a

Contents?: true

Size: 720 Bytes

Versions: 6

Compression:

Stored size: 720 Bytes

Contents

require File.expand_path('../../tasks', __FILE__)
require 'rake'
require 'thor'
require 'securerandom' unless defined?(SecureRandom)

module PadrinoTasks
  def self.init(init=false)
    Padrino::Tasks.files.flatten.uniq.each { |rakefile| Rake.application.add_import(rakefile) rescue puts "<= Failed load #{ext}" }
    if init
      Rake.application.init
      Rake.application.instance_variable_set(:@rakefile, __FILE__)
      load(File.expand_path('../rake_tasks.rb', __FILE__))
      Rake.application.load_imports
      Rake.application.top_level
    else
      load(File.expand_path('../rake_tasks.rb', __FILE__))
      Rake.application.load_imports
    end
  end
end

def shell
  @_shell ||= Thor::Base.shell.new
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
middleman-2.0.7 lib/middleman/vendor/padrino-core-0.10.0/lib/padrino-core/cli/rake.rb
middleman-2.0.6 lib/middleman/vendor/padrino-core-0.10.0/lib/padrino-core/cli/rake.rb
middleman-2.0.5 lib/middleman/vendor/padrino-core-0.10.0/lib/padrino-core/cli/rake.rb
padrino-core-0.10.1 lib/padrino-core/cli/rake.rb
padrino-core-0.10.0 lib/padrino-core/cli/rake.rb
padrino-core-0.9.29 lib/padrino-core/cli/rake.rb