Class: Gleis::CLI::Sharing
- Inherits:
-
Thor
- Object
- Thor
- Gleis::CLI::Sharing
- Defined in:
- lib/gleis/cli/sharing.rb
Overview
Sharing-related CLI commands
Instance Method Summary collapse
Instance Method Details
#add(email, role) ⇒ Object
8 9 10 |
# File 'lib/gleis/cli/sharing.rb', line 8 def add(email, role) Gleis::Sharing.add([:app], email, role) end |
#list ⇒ Object
13 14 15 |
# File 'lib/gleis/cli/sharing.rb', line 13 def list Gleis::Sharing.list([:app]) end |
#remove(email) ⇒ Object
18 19 20 |
# File 'lib/gleis/cli/sharing.rb', line 18 def remove(email) Gleis::Sharing.remove([:app], email) end |