Sha256: 85cbaf7ebf3591c1b3582dac0c6ead774c4c68c5abce07f97d16e53d72c53749

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

class Gem < Thor  
    include Thor::Actions

    # This allows for dynamic descriptions
    begin
        @gemhelper = Bundler::GemHelper.new
    rescue
    end

    def initialize(*args)
        super
        @gemhelper = Bundler::GemHelper.new
    end

    # tasks
    desc "build", @gemhelper.nil? ? "Building gem into the pkg directory" : 
                        "Building #{@gemhelper.gemspec.name}-#{@gemhelper.gemspec.version}.gem into the pkg directory"
    def build
        @gemhelper.build_gem
    end

    desc "install", @gemhelper.nil? ? "Build and install gem into system gems" : 
                        "Build and install #{@gemhelper.gemspec.name}-#{@gemhelper.gemspec.version}.gem into system gems"
    def install
        @gemhelper.install_gem
    end

    desc "release", @gemhelper.nil? ? "Create tag and build and push gem to Rubygems" :
                        "Create tag v#{@gemhelper.gemspec.version} and build and push #{@gemhelper.gemspec.name}-#{@gemhelper.gemspec.version}.gem to Rubygems"
    def release
        @gemhelper.release_gem
    end
end  

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
piedesaint-0.1.2 tasks/gem.thor
piedesaint-0.1.1 tasks/gem.thor
piedesaint-0.1.0 tasks/gem.thor
piedesaint-0.0.2 tasks/gem.thor
piedesaint-0.0.1 tasks/gem.thor
vagrant-solaris10-0.0.0 tasks/gem.thor
bezebe-cvs-0.0.1 tasks/gem.thor
bezebe-cvs-0.0.0 tasks/gem.thor