Module: Kplay
- Includes:
- System
- Defined in:
- lib/kplay.rb,
lib/kplay/cli.rb,
lib/kplay/pod.rb,
lib/kplay/config.rb,
lib/kplay/system.rb,
lib/kplay/version.rb,
lib/kplay/minikube.rb,
lib/kplay/registry.rb
Defined Under Namespace
Modules: Minikube, Registry, System Classes: CLI, Config, Pod
Constant Summary collapse
- DEFAULT_DATA_FOLDER =
'~/.kplay'- VERSION =
'0.3.2'.freeze
Class Method Summary collapse
-
.assert_requirements! ⇒ Object
Checks if requirements are satisfied.
-
.data_path(*paths) ⇒ Object
Returns path to data folder or its subfolders/files.
-
.install_paths ⇒ Object
Install data folder.
Methods included from System
Class Method Details
.assert_requirements! ⇒ Object
Checks if requirements are satisfied
21 22 23 24 |
# File 'lib/kplay.rb', line 21 def self.assert_requirements! assert_program_presence!('minikube') assert_program_presence!('kubectl') end |
.data_path(*paths) ⇒ Object
Returns path to data folder or its subfolders/files
28 29 30 |
# File 'lib/kplay.rb', line 28 def self.data_path(*paths) Pathname.new(DEFAULT_DATA_FOLDER).join(*paths). end |
.install_paths ⇒ Object
Install data folder
34 35 36 |
# File 'lib/kplay.rb', line 34 def self.install_paths sh ['install', '-p', data_path] end |