Sha256: 9e0edb0eb9c76f80015312bfa354f6f15c8889c1bb7a5f1d58c843b18a1fdd4f

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

# Task for loading gems needed by this template. Bootstrap to get installed...

namespace :template do
  desc 'Load missing gems to local gem repository'
  task :gems do
    if (appcfg = `which appcfg.rb`.chomp).empty?
      $stderr.puts '!!Error: Could not find "appcfg.rb"'
      exit
    end

    if (patch = `which patch`.chomp).empty?
      $stderr.puts '!!Error: Could not find "patch"'
      exit
    end

    puts 'Load missing gems to local gem repository'
    `(sudo #{appcfg} gem install appengine-apis haml sinatra) 1>&2`
    puts 'Add patch for Haml 2.2.2 if needed'
    `(sudo #{patch} --batch --silent .gems/gems/haml-2.2.2/lib/haml/util.rb < lib/tasks/haml-2_2_2-util.patch) 2> /dev/null 1>&2`
  end
end

# Add your own tasks...

namespace :sinatra do
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ulbrich-jruby-enginize-0.7.2 templates/sinatra/lib/tasks/sinatra.rake