Sha256: 81cc9892243858c62a9fbef20f38cb339580a783cd1460f7f6fbb9d060605d1b

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

module Kontena::Cli::Vpn
  class ConfigCommand < Clamp::Command
    include Kontena::Cli::Common

    def execute
      require_api_url
      payload = {cmd: ['/usr/local/bin/ovpn_getclient', 'KONTENA_VPN_CLIENT']}
      stdout, stderr = client(require_token).post("containers/#{current_grid}/vpn/vpn-1/exec", payload)
      puts stdout
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kontena-cli-0.9.1 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.9.0 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.4 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.3 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.2 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.1 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.0.1 lib/kontena/cli/vpn/config_command.rb
kontena-cli-0.8.0 lib/kontena/cli/vpn/config_command.rb