Class: Cloudrider::BackendCommander
- Inherits:
-
Object
- Object
- Cloudrider::BackendCommander
- Defined in:
- lib/cloudrider/backend_commander.rb
Defined Under Namespace
Classes: UnknownOrUnimplmenetedVarisset
Class Method Summary collapse
Instance Method Summary collapse
- #files_to_write ⇒ Object
-
#initialize(params) ⇒ BackendCommander
constructor
A new instance of BackendCommander.
Constructor Details
#initialize(params) ⇒ BackendCommander
Returns a new instance of BackendCommander.
12 13 14 |
# File 'lib/cloudrider/backend_commander.rb', line 12 def initialize(params) @params = params end |
Class Method Details
.backend_ruby_protofiles_for(params) ⇒ Object
7 8 9 |
# File 'lib/cloudrider/backend_commander.rb', line 7 def backend_ruby_protofiles_for(params) new(params).files_to_write end |
Instance Method Details
#files_to_write ⇒ Object
16 17 18 |
# File 'lib/cloudrider/backend_commander.rb', line 16 def files_to_write .flatten.map { |ac| ac.new style: _backend_style, protosite: _protosite }.map(&:protofile) end |