Class: Cloudrider::ApplicationCommander

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

Defined Under Namespace

Classes: UnknownOrUnimplmenetedVarisset

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ ApplicationCommander

Returns a new instance of ApplicationCommander.



10
11
12
# File 'lib/cloudrider/application_commander.rb', line 10

def initialize(params)
  @params = params
end

Class Method Details

.varisset_protofiles_for(params) ⇒ Object



6
7
8
# File 'lib/cloudrider/application_commander.rb', line 6

def varisset_protofiles_for(params)
  new(params).files_to_write
end

Instance Method Details

#files_to_writeObject



14
15
16
# File 'lib/cloudrider/application_commander.rb', line 14

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