Sha256: cf98410202a7825202f0d7c0e98fe2063a38c07022c98a710da325d611a7d3a8

Contents?: true

Size: 1.07 KB

Versions: 13

Compression:

Stored size: 1.07 KB

Contents

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

require 'bundler'
require 'bundler/setup'

require 'berkshelf'
require 'thor/rake_compat'

class Default < Thor
  include Thor::RakeCompat
  Bundler::GemHelper.install_tasks

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

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

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

  desc "spec", "Run RSpec code examples"
  def spec
    exec "rspec --color --format=documentation spec"
  end

  desc "cucumber", "Run Cucumber features"
  def cucumber
    exec "cucumber --color --format progress --tags ~@no_run"
  end

  class VCR < Thor
    namespace :vcr

    desc "clean", "clean VCR cassettes"
    def clean
      FileUtils.rm_rf("spec/fixtures/vcr_cassettes")
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
berkshelf-0.6.0.beta2 Thorfile
berkshelf-0.5.1 Thorfile
berkshelf-0.6.0.beta1 Thorfile
berkshelf-0.5.0 Thorfile
berkshelf-0.5.0.rc4 Thorfile
berkshelf-0.5.0.rc3 Thorfile
berkshelf-0.5.0.rc2 Thorfile
berkshelf-0.5.0.rc1 Thorfile
berkshelf-0.4.0 Thorfile
berkshelf-0.4.0.rc4 Thorfile
berkshelf-0.4.0.rc3 Thorfile
berkshelf-0.4.0.rc2 Thorfile
berkshelf-0.4.0.rc1 Thorfile