module Kplay
Constants
- DEFAULT_DATA_FOLDER
- VERSION
Public Class Methods
assert_requirements!()
click to toggle source
Checks if requirements are satisfied
# File lib/kplay.rb, line 21 def self.assert_requirements! assert_program_presence!('minikube') assert_program_presence!('kubectl') end
data_path(*paths)
click to toggle source
Returns path to data folder or its subfolders/files
# File lib/kplay.rb, line 28 def self.data_path(*paths) Pathname.new(DEFAULT_DATA_FOLDER).join(*paths).expand_path end
install_paths()
click to toggle source
Install data folder
# File lib/kplay.rb, line 34 def self.install_paths sh ['install', '-p', data_path] end