From 2b784c267f8688111ed3f745454e349500f426bc Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 24 May 2019 16:03:40 +0100 Subject: WIP --- lib/guix.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/guix.rb b/lib/guix.rb index a9cc7b0..a228ce4 100644 --- a/lib/guix.rb +++ b/lib/guix.rb @@ -22,4 +22,8 @@ module Guix def self.available_locally? File.exist?('/var/guix/daemon-socket/socket') end + + def self.valid_store_path?(path) + path.starts_with?('/gnu/store/') && !path.match(/\s/) + end end -- cgit v1.2.3