Skip to content

Commit

Permalink
remove unused tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed Jul 30, 2015
1 parent c2e889e commit fa8365f
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'github/markup'
require 'redcarpet'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'

Expand Down Expand Up @@ -32,20 +32,4 @@ task :make_bin_executable do
`chmod -R +x bin/*`
end

desc 'Retrieve the current version'
task :version do
puts SensuPluginsHttp::Version.json_version
end

desc 'Bump the PATCH version'
task :bump do
version_file = 'lib/sensu-plugins-http/version.rb'

# Read the file, bump the PATCH version
contents = File.read(version_file).gsub(/(PATCH = )(\d+)/) { |_| Regexp.last_match[1] + (Regexp.last_match[2].to_i + 1).to_s }

# Write the new contents of the file
File.open(version_file, 'w') { |file| file.puts contents }
end

task default: args

0 comments on commit fa8365f

Please sign in to comment.