2018-03-22 18:01:53 -04:00
|
|
|
require "bundler/gem_helper"
|
|
|
|
require "rspec/core/rake_task"
|
2018-05-07 11:46:15 -04:00
|
|
|
require "rubocop/rake_task"
|
2018-03-22 18:01:53 -04:00
|
|
|
|
|
|
|
namespace "psenv" do
|
|
|
|
Bundler::GemHelper.install_tasks name: "psenv"
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace "psenv-rails" do
|
|
|
|
class ParameterStoreEnvRailsGemHelper < Bundler::GemHelper
|
2020-02-19 07:52:46 -05:00
|
|
|
def guard_already_tagged
|
|
|
|
end
|
2018-03-22 18:01:53 -04:00
|
|
|
|
2020-02-19 07:52:46 -05:00
|
|
|
def tag_version
|
|
|
|
end
|
2018-03-22 18:01:53 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
ParameterStoreEnvRailsGemHelper.install_tasks name: "psenv-rails"
|
|
|
|
end
|
|
|
|
|
|
|
|
task build: ["psenv:build", "psenv-rails:build"]
|
|
|
|
task install: ["psenv:install", "psenv-rails:install"]
|
|
|
|
task release: ["psenv:release", "psenv-rails:release"]
|
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
2018-05-07 11:46:15 -04:00
|
|
|
RuboCop::RakeTask.new(:rubocop)
|
2018-03-22 18:01:53 -04:00
|
|
|
|
2018-05-07 11:46:15 -04:00
|
|
|
task default: %i[rubocop spec]
|