From 05dbcb045836550547e348a36c18ee0ad3fc5aca Mon Sep 17 00:00:00 2001 From: Vito Botta Date: Sun, 14 Apr 2024 19:45:36 +0000 Subject: [PATCH] Change executable directory --- bin/hetzner-k3s.rb => exe/hetzner-k3s | 5 ++++- hetzner-k3s.gemspec | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) rename bin/hetzner-k3s.rb => exe/hetzner-k3s (50%) diff --git a/bin/hetzner-k3s.rb b/exe/hetzner-k3s similarity index 50% rename from bin/hetzner-k3s.rb rename to exe/hetzner-k3s index a5440b8..b7936eb 100755 --- a/bin/hetzner-k3s.rb +++ b/exe/hetzner-k3s @@ -1,4 +1,7 @@ -#!/bin/env ruby +#!/usr/bin/env ruby # frozen_string_literal: true +require "bundler/setup" +require "hetzner_k3s" + puts "Hello, #{ARGV[0] || 'World'}" diff --git a/hetzner-k3s.gemspec b/hetzner-k3s.gemspec index a22748a..2b12d6c 100644 --- a/hetzner-k3s.gemspec +++ b/hetzner-k3s.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile]) end end - spec.bindir = "bin" + spec.bindir = "exe" spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]