Sha256: ee5423a18faf0b7711a96947174a588e80fc2fe5260435e80b933144fbaff0e4

Contents?: true

Size: 928 Bytes

Versions: 6

Compression:

Stored size: 928 Bytes

Contents

# encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)

require 'bundler'
require 'bundler/setup'
require 'thor'
require 'berkshelf-api'

class Default < Thor
  require 'thor/rake_compat'

  include Thor::RakeCompat
  Bundler::GemHelper.install_tasks

  desc "build", "Build berkshelf-api-#{Berkshelf::API::VERSION}.gem into the pkg directory"
  def build
    Rake::Task["build"].execute
  end

  desc "install", "Build and install berkshelf-api-#{Berkshelf::API::VERSION}.gem into system gems"
  def install
    Rake::Task["install"].execute
  end

  desc "release", "Create tag v#{Berkshelf::API::VERSION} and build and push berkshelf-api-#{Berkshelf::API::VERSION}.gem to Rubygems"
  def release
    Rake::Task["release"].execute
  end

  class Spec < Thor
    namespace :spec
    default_task :all

    desc "all", "run all tests"
    def all
      exec "rspec --color --format=documentation spec"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
berkshelf-api-1.2.0.rc1 Thorfile
berkshelf-api-1.1.1 Thorfile
berkshelf-api-1.1.0 Thorfile
berkshelf-api-1.0.0 Thorfile
berkshelf-api-0.2.0 Thorfile
berkshelf-api-0.1.0 Thorfile