Sha256: 8f386cad5edd8a8c1b944206e9e428c1acab211952afa2885d5294c8088af356

Contents?: true

Size: 811 Bytes

Versions: 14

Compression:

Stored size: 811 Bytes

Contents

require_relative 'etcd/get_command'
require_relative 'etcd/set_command'
require_relative 'etcd/mkdir_command'
require_relative 'etcd/list_command'
require_relative 'etcd/remove_command'
require_relative 'etcd/health_command'

class Kontena::Cli::EtcdCommand < Kontena::Command

  subcommand "get", "Get the current value for a single key", Kontena::Cli::Etcd::GetCommand
  subcommand "set", "Set a value on the specified key", Kontena::Cli::Etcd::SetCommand
  subcommand ["mkdir", "mk"], "Create a directory", Kontena::Cli::Etcd::MkdirCommand
  subcommand ["list", "ls"], "List a directory", Kontena::Cli::Etcd::ListCommand
  subcommand "rm", "Remove a key or a directory", Kontena::Cli::Etcd::RemoveCommand
  subcommand "health", "Check etcd health", Kontena::Cli::Etcd::HealthCommand

  def execute
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kontena-cli-1.1.6 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.5 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.5.rc3 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.5.rc2 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.5.rc1 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.4 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.3 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.2 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.2.rc2 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.2.rc1 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.1 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.1.rc1 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.0 lib/kontena/cli/etcd_command.rb
kontena-cli-1.1.0.rc2 lib/kontena/cli/etcd_command.rb