Sha256: 3b7a3a13bf94608c7aa8dbb2de91781b0a237baaba72f876297f8327868516b0

Contents?: true

Size: 1019 Bytes

Versions: 4

Compression:

Stored size: 1019 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'AdminApps methods.'
command 'admin_apps' do |g|
  g.desc 'Approve an app for installation on a workspace.'
  g.long_desc %( Approve an app for installation on a workspace. )
  g.command 'approve' do |c|
    c.flag 'app_id', desc: 'The id of the app to approve.'
    c.flag 'request_id', desc: 'The id of the request to approve.'
    c.flag 'team_id', desc: '.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_apps_approve(options))
    end
  end

  g.desc 'Restrict an app for installation on a workspace.'
  g.long_desc %( Restrict an app for installation on a workspace. )
  g.command 'restrict' do |c|
    c.flag 'app_id', desc: 'The id of the app to restrict.'
    c.flag 'request_id', desc: 'The id of the request to restrict.'
    c.flag 'team_id', desc: '.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_apps_restrict(options))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 bin/commands/admin_apps.rb
slack-ruby-client-0.15.0 bin/commands/admin_apps.rb
slack-ruby-client-0.14.6 bin/commands/admin_apps.rb
slack-ruby-client-0.14.5 bin/commands/admin_apps.rb