Class: RailsFormation::Cli::Processor
- Inherits:
-
Object
- Object
- RailsFormation::Cli::Processor
- Defined in:
- lib/rails-formation/cli/processor.rb
Constant Summary collapse
- COMMANDS =
%w[apply].freeze
- InvalidCommand =
Class.new(StandardError)
- InvalidUid =
Class.new(StandardError)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args) ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize(args) ⇒ Processor
Returns a new instance of Processor.
11 12 13 14 |
# File 'lib/rails-formation/cli/processor.rb', line 11 def initialize(args) @command = args[0] @uid = args[1] end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 |
# File 'lib/rails-formation/cli/processor.rb', line 16 def call validate_command ::RailsFormation.apply(adapter.template) end |