Sha256: bf2c5cc89f48c016cc4bf1823b0de9c276a03762d0efad7bafd69b7d00d28cd2
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# -*- mode: ruby; encoding: utf-8 -*- $:.push File.expand_path('../lib', __FILE__) require 'bundler' require 'i18n' require 'bundler/setup' require 'thor/rake_compat' require 'vagrant-opsworks' GEM_PKG = "vagrant-opsworks-#{VagrantPlugins::OpsWorks::VERSION}.gem".freeze class Gem < Thor include Thor::RakeCompat Bundler::GemHelper.install_tasks desc 'build', "Build #{GEM_PKG} into the pkg directory" def build Rake::Task['build'].execute end desc 'release', "Create tag v#{VagrantPlugins::OpsWorks::VERSION} and build and push #{GEM_PKG} to Rubygems" def release Rake::Task['release'].execute end desc 'install', "Build and install #{GEM_PKG} into system gems" def install Rake::Task['install'].execute end end class Spec < Thor include Thor::Actions default_task :unit desc 'plug', "Install #{GEM_PKG} into vagrant" def plug build run "vagrant plugin install pkg/#{GEM_PKG}" end desc 'ci', "Run all possible tests on Travis-CI" def ci ENV['CI'] = 'true' # Tracis-CI also sets this, but set it here for local testing invoke(:unit) end desc 'unit', "Run unit tests" def unit unless run_unit exit 1 end end no_tasks do def run_unit(*flags) run "rspec --color --format=documentation #{flags.join(' ')} spec" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-opsworks-0.3.1 | Thorfile |