Method: Amp::Command#workflow
- Defined in:
- lib/amp/commands/command.rb
#workflow(*args) ⇒ Object Also known as: workflows
Specifies a workflow that may access this command. Workflows are groups of commands, pure and simple. If the user has no specified workflow, the mercurial workflow is used by default.
280 281 282 283 284 285 286 287 288 289 |
# File 'lib/amp/commands/command.rb', line 280 def workflow(*args) if args.any? # unless args.empty? args.each do |arg| self.class.workflows[arg][self.name.to_sym] = self # register globally @workflows << arg # register locally end else @workflows end end |