Class: Cloudrider::BackendCommander

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudrider/backend_commander.rb

Defined Under Namespace

Classes: UnknownOrUnimplmenetedVarisset

Class Method Summary collapse

Instance Method Summary collapse

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_writeObject



16
17
18
# File 'lib/cloudrider/backend_commander.rb', line 16

def files_to_write
  _related_backends.flatten.map { |ac| ac.new style: _backend_style, protosite: _protosite }.map(&:protofile)
end