Sha256: cd4119869cced92e0b0a72a27c6ffd6738a25a49dfccffcd01abda76b86b040e

Contents?: true

Size: 748 Bytes

Versions: 3

Compression:

Stored size: 748 Bytes

Contents

class Rag < Thor
	desc "release", "release this gem to RubyGems.org"
	def release
		system "gem build #{Rc.o.project}.gemspec", :verbose => true
		system "gem push #{Rc.o.project}-#{Rc.o.version}.gem", :verbose => true
		Pa.rm "#{Rc.o.project}-#{Rc.o.version}.gem", :verbose => true
	end

	desc "install", "install this gem to your system"
	def install
		sudo = Process.uid == 0 ? "" : "sudo"
		system "gem build #{Rc.o.project}.gemspec", :verbose => true
		system "#{sudo} gem install #{Rc.o.project}-#{Rc.o.version}.gem", :verbose => true
		Pa.rm "#{Rc.o.project}-#{Rc.o.version}.gem", :verbose => true
	end

	desc "build", "build this gem at current directory "
	def build
		system "gem build #{Rc.o.project}.gemspec", :verbose => true
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rag-1.2.1 lib/rag/gem.rb
rag-1.2.0 lib/rag/gem.rb
rag-1.1.0 lib/rag/gem.rb