Sha256: 4532d2a6b1152ebfd1464ae3e0ca13e54207488bc2ec9eeecc96d1f286dc87e1

Contents?: true

Size: 736 Bytes

Versions: 107

Compression:

Stored size: 736 Bytes

Contents

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

require '_APPLICATION_DOWNCODE_'

namespace :_APPLICATION_DOWNCODE_ do

  namespace :process do

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

    desc 'Run'
    task :run => ['_APPLICATION_DOWNCODE_:cache:destroy'] do |task|
      system("clear; bundle exec ruby_app run")
    end

  end

  namespace :cache do

    desc 'List all cached files'
    task :list do
      system('find . | grep \'\\.cache\'')
    end

    desc 'Remove all cached files'
    task :destroy do
      puts 'Removing cached files ...'
      system('find . -name \'.cache\' | xargs rm -rv')
    end

  end

end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
RubyApp-0.5.45 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.44 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.43 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.42 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.41 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.40 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.39 lib/ruby_app/templates/application/Rakefile