Sha256: 99bed7a8058c411496ceee2315afed3aa051cdfdd075b3cc47c0c46594d04b6a
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
# encoding: UTF-8 require 'pp' require_relative '../shared' require_relative '../../commands/role' GoodData::CLI.module_eval do desc 'Basic Role Management' arg_name 'list' command :role do |c| c.desc 'List roles' c.command :list do |list| list.action do |global_options, options, args| opts = options.merge(global_options) GoodData.connect(opts) pid = global_options[:project_id] fail 'Project ID has to be provided' if pid.nil? || pid.empty? role_list = GoodData::Command::Role.list(pid) role_list.each do |k, v| puts [k, v[:uri]].join(',') end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems