Sha256: cc2c72ce560dc5f2a10a2f378d3ab484dc8b10b27948400dd4ef09fd74ee5f13
Contents?: true
Size: 621 Bytes
Versions: 8
Compression:
Stored size: 621 Bytes
Contents
module Kontena::Cli::Grids module Common ## # @param [Hash] grid def print_grid(grid) puts "#{grid['name']}:" puts " uri: #{self.current_master['url'].sub('http', 'ws')}" puts " token: #{grid['token']}" puts " users: #{grid['user_count']}" puts " nodes: #{grid['node_count']}" puts " services: #{grid['service_count']}" puts " containers: #{grid['container_count']}" end def grids @grids ||= client(require_token).get('grids') end def find_grid_by_name(name) grids['grids'].find {|grid| grid['name'] == name } end end end
Version data entries
8 entries across 8 versions & 1 rubygems