Sha256: 574209edf39291fbbe571607502cc1a9055e8649734480288bafc910fe25a3a2

Contents?: true

Size: 844 Bytes

Versions: 1

Compression:

Stored size: 844 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"

task default: :spec

###
require "secretmgr"
require "pathname"

begin
  require "rspec/core/rake_task"
rescue LoadError => e
  puts e.message
end

begin
  RSpec::Core::RakeTask.new(:spec)
rescue NameError, LoadError => e
  puts e.message
end

begin
  require "rubocop/rake_task"
rescue LoadError => e
  puts e.message
end

begin
  RuboCop::RakeTask.new
rescue NameError, LoadError => e
  puts e.message
end

desc "secretmgr setup"
task default: %i[spec rubocop]

desc "setup"
task :setup do
  home_dir_pn = Pathname.new(Dir.home)
  spec_dir_pn = home_dir_pn + "spec"
  test_data_dir_pn = spec_dir_pn + "test_data"
  ssh_dir_pn = test_data_dir_pn + ".ssh"
  if ssh_dir_pn.exist?
    puts "Exist ssh_dir_pn=#{ssh_dir_pn}"
  else
    puts "Not Exist ssh_dir_pn=#{ssh_dir_pn}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
secretmgr-0.2.0 Rakefile