Sha256: 2e44386cf51e2e46db5b1491907545cfd7cdf41e236558068f5a491b25f77f2c

Contents?: true

Size: 602 Bytes

Versions: 66

Compression:

Stored size: 602 Bytes

Contents

require 'pathname'
gem_name = Pathname.new(File.expand_path('..', __FILE__)).children.find{ |ch| ch.file? and ch.basename.to_s =~ /\.gemspec$/ }.basename('.gemspec').to_s

task :gem do
  system "rm -f *.gem"
  system "gem build #{gem_name}.gemspec"
  system "gem push #{gem_name}-*.gem"
  system "rm -f *.gem"
end

task :install do
  Rake::Task['uninstall'].invoke

  system "rm -f *.gem"
  system "gem build #{gem_name}.gemspec"
  system "sudo gem install #{gem_name}-*.gem"
  system "rm -f #{gem_name}-*.gem"
end

task :uninstall do
  system "sudo gem uninstall -x #{gem_name}", err: '/dev/null'
end

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
stacco-0.1.70 ./Rakefile
docker-utils-0.1.37 ./Rakefile
docker-utils-0.1.35 ./Rakefile
stacco-0.1.68 ./Rakefile
stacco-0.1.66 ./Rakefile
stacco-0.1.64 ./Rakefile
docker-utils-0.1.34 ./Rakefile
stacco-0.1.63 ./Rakefile
docker-utils-0.1.33 ./Rakefile
stacco-0.1.62 ./Rakefile
docker-utils-0.1.32 ./Rakefile
stacco-0.1.61 ./Rakefile
stacco-0.1.60 ./Rakefile
stacco-0.1.59 ./Rakefile
stacco-0.1.57 ./Rakefile
docker-utils-0.1.31 ./Rakefile
docker-utils-0.1.30 ./Rakefile
docker-utils-0.1.29 ./Rakefile
stacco-0.1.53 ./Rakefile
stacco-0.1.52 ./Rakefile