Skip to content

Commit

Permalink
tidy up Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dupras committed May 27, 2014
1 parent 8747722 commit 99999e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
.rvmrc
.testrc
.idea/
pkg/
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -3,6 +3,7 @@ knife-vsphere changelog
1.0.0.pre.2 *
bdupras - added property subcommand
bdupras - fixed prerelease naming -pre to .pre
bdupras - tidy up Rakefile

1.0-pre *
mheidenr - added option to select a datatstorecluster in vm clone
Expand Down
23 changes: 5 additions & 18 deletions Rakefile
@@ -1,19 +1,6 @@
require 'rubygems/package_task'
require 'fileutils'
require 'bundler'
require 'bundler/gem_tasks'
require 'rake/clean'
CLEAN.include('pkg')

GEMSPEC = eval(File.read('knife-vsphere.gemspec'))

spec = Gem::Specification.load(Dir['*.gemspec'].first)
gem = Gem::PackageTask.new(GEMSPEC)
gem.define

desc "Push gem to rubygems.org"
task :push => :gem do
sh "gem push #{gem.package_dir}/#{gem.gem_file}"
end

desc "Clean old gem build"
task :clean do
pkg_dir = File.join(File.dirname(__FILE__), 'pkg')
FileUtils.rm_rf(pkg_dir) if Dir.exists? pkg_dir
end
task default: :build

0 comments on commit 99999e1

Please sign in to comment.