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.65 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.64 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.63 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.62 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.61 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.60 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.59 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.58 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.57 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.56 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.55 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.54 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.53 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.52 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.51 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.50 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.49 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.48 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.47 lib/ruby_app/templates/application/Rakefile
RubyApp-0.5.46 lib/ruby_app/templates/application/Rakefile