Sha256: 45507282f0d5e2ae6086b6f4409dd463b53f16023f3e88d81231264a00bf8f30
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
require 'rubygems' require "bundler/gem_tasks" require 'bundler/setup' require 'rake' require 'terminal-table' require 'ruby_app' namespace :ruby_app do desc 'Get version' task :version do |task| puts RubyApp::VERSION end desc 'Push to master, release, and increment version' task :release do |task| system('git push origin master && rake release') version_file = File.join(RubyApp::ROOT, %w[version.rb]) RubyApp::VERSION =~ /(\d+)\.(\d+)\.(\d+)/ system("sed 's|[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*|#{$1}.#{$2}.#{$3.to_i + 1}|g' < '#{version_file}' > '#{version_file}.out'; rm '#{version_file}'; mv '#{version_file}.out' '#{version_file}'") system("git commit --all --message=\'Version #{RubyApp::VERSION}\'") end namespace :process do desc 'Create console' task :console do |task| system('cd ./lib/ruby_app && clear && bundle exec ../../bin/ruby_app console') end desc 'Run' task :run => ['ruby_app:cache:destroy'] do |task| system('cd ./lib/ruby_app && clear && bundle exec ../../bin/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.5.93 | Rakefile |
RubyApp-0.5.92 | Rakefile |
RubyApp-0.5.91 | Rakefile |