Class: Hetzner::K3s::CLI
- Inherits:
-
Thor
- Object
- Thor
- Hetzner::K3s::CLI
- Defined in:
- lib/hetzner/k3s/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create_cluster ⇒ Object
- #delete_cluster ⇒ Object
- #releases ⇒ Object
- #upgrade_cluster ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
18 19 20 |
# File 'lib/hetzner/k3s/cli.rb', line 18 def self.exit_on_failure? true end |
Instance Method Details
#create_cluster ⇒ Object
29 30 31 32 |
# File 'lib/hetzner/k3s/cli.rb', line 29 def create_cluster configuration.validate action: :create Cluster.new(configuration: configuration).create end |
#delete_cluster ⇒ Object
36 37 38 39 |
# File 'lib/hetzner/k3s/cli.rb', line 36 def delete_cluster configuration.validate action: :delete Cluster.new(configuration: configuration).delete end |
#releases ⇒ Object
51 52 53 54 55 |
# File 'lib/hetzner/k3s/cli.rb', line 51 def releases Hetzner::Configuration.available_releases.each do |release| puts release end end |