Sha256: c55ac376ebafa01db9467d8ba1ca8f0c90882d3409882f27e61cd00981605942

Contents?: true

Size: 612 Bytes

Versions: 9

Compression:

Stored size: 612 Bytes

Contents

module Kontena::Cli::Nodes; end;

require_relative 'nodes'

command 'node list' do |c|
  c.syntax = 'kontena node list'
  c.description = 'List all nodes'
  c.action do |args, options|
    Kontena::Cli::Nodes::Nodes.new.list
  end
end

command 'node show' do |c|
  c.syntax = 'kontena node show'
  c.description = 'Show node details'
  c.action do |args, options|
    Kontena::Cli::Nodes::Nodes.new.show(args[0])
  end
end

command 'node remove' do |c|
  c.syntax = 'kontena node remove'
  c.description = 'Remove node'
  c.action do |args, options|
    Kontena::Cli::Nodes::Nodes.new.destroy(args[0])
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kontena-cli-0.7.3 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.7.2 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.7.1 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.7.0 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.6.1 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.6.0 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.5.0 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.0.2 lib/kontena/cli/nodes/commands.rb
kontena-cli-0.0.1 lib/kontena/cli/nodes/commands.rb