Sha256: e1b617b95cd504a8258abe0e98259afc1908b23e443d34185a3e526d3ddd6b84
Contents?: true
Size: 546 Bytes
Versions: 34
Compression:
Stored size: 546 Bytes
Contents
module Kontena::Cli::Grids::TrustedSubnets class AddCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "SUBNET", "Trusted subnet" requires_current_master def execute grid = client.get("grids/#{current_grid}") data = {trusted_subnets: grid['trusted_subnets'] + [self.subnet]} spinner "Adding #{pastel.cyan(subnet)} as a trusted subnet in #{pastel.cyan(current_grid)} grid " do client.put("grids/#{current_grid}", data) end end end end
Version data entries
34 entries across 34 versions & 2 rubygems