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
|
|
|
|
2021-10-23 10:38:28 -04:00
|
|
|
class ParameterStoreEnvRailsGemHelper < Bundler::GemHelper
|
|
|
|
def guard_already_tagged
|
|
|
|
end
|
|
|
|
|
|
|
|
def tag_version
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-03-22 18:01:53 -04:00
|
|
|
namespace "psenv" do
|
|
|
|
Bundler::GemHelper.install_tasks name: "psenv"
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace "psenv-rails" do
|
|
|
|
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]
|