Sha256: ca2ff501987c33f11a1e813544a0708fed1a8c1491fdbf86d3d3e158ec9d3fa6

Contents?: true

Size: 894 Bytes

Versions: 3

Compression:

Stored size: 894 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'rake'

$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[lib]))

require '_APPLICATION_DOWNCODE_/application'

namespace :_APPLICATION_DOWNCODE_ do

  desc 'Create console'
  task :console do |task|
    system("clear; bundle exec ruby_app console")
  end

  desc 'Run'
  task :run do |task|
    system("clear; bundle exec ruby_app run")
  end

  namespace :cache do

    desc 'Create element cache'
    task :create do |task|
      _APPLICATION_UPCODE_::Application.create_cache(File.join(File.dirname(__FILE__), %w[lib _APPLICATION_DOWNCODE_ elements]), File.join(File.dirname(__FILE__), %w[lib]))
    end

    desc 'Delete element cache'
    task :destroy do |task|
      _APPLICATION_UPCODE_::Application.destroy_cache(File.join(File.dirname(__FILE__), %w[lib _APPLICATION_DOWNCODE_ elements]))
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
RubyApp-0.0.75 lib/ruby_app/templates/application/Rakefile
RubyApp-0.0.74 lib/ruby_app/templates/application/Rakefile
RubyApp-0.0.73 lib/ruby_app/templates/application/Rakefile