Class: Porkadot::Cmd::Install::Cli
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Porkadot::Cmd::Install::Cli
- Includes:
- Utils
- Defined in:
- lib/porkadot/cmd/install.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Utils
Methods inherited from SubCommandBase
Class Method Details
.subcommand_prefix ⇒ Object
35 36 37 |
# File 'lib/porkadot/cmd/install.rb', line 35 def self.subcommand_prefix 'install' end |
Instance Method Details
#all ⇒ Object
8 9 10 11 |
# File 'lib/porkadot/cmd/install.rb', line 8 def all invoke :kubelet, [], invoke :bootstrap, [], end |
#kubelet ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/porkadot/cmd/install.rb', line 16 def kubelet logger.info "Installing kubelet" kubelets = Porkadot::Install::KubeletList.new(self.config) nodes = [] if node = [:node] nodes = kubelets[node] else nodes = kubelets.kubelets.values end kubelets.install hosts: nodes, force: [:force] "" end |