Sha256: e9962b1166469e909d01713c0b80bb2a7c4c3fd803473dd6d12d60c9ab886048

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

project_name = read_project_name
authorize(project_name, 'admin')
project = Project.new(project_name)

permissions = project.lock { project.permissions }

if @options[:format] == :yaml
  puts YAML::dump(permissions)
elsif @options[:format] == :text
  permissions.each do |permission|
    puts "#{permission[:user]}=#{permission[:access]}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hubbard-0.0.18 commands/list-permissions.rb