Class: SSH::Allow::CLI
- Inherits:
-
Thor
- Object
- Thor
- SSH::Allow::CLI
- Defined in:
- lib/ssh/allow/cli.rb
Instance Method Summary collapse
Instance Method Details
#guard ⇒ Object
12 13 14 15 16 |
# File 'lib/ssh/allow/cli.rb', line 12 def guard rule_set.read([:rules]) puts command if [:echo] command.allowed?(rule_set.rules) ? command.run : fail end |