Module: EY::Serverside::RailsAssets::Strategy

Defined in:
lib/engineyard-serverside/rails_assets/strategy.rb

Defined Under Namespace

Classes: Cleaning, Private, Shared, Shifting

Class Method Summary collapse

Class Method Details

.allObject


7
8
9
10
11
12
13
14
# File 'lib/engineyard-serverside/rails_assets/strategy.rb', line 7

def self.all
  {
    'shared'   => Shared,
    'cleaning' => Cleaning,
    'private'  => Private,
    'shifting' => Shifting,
  }
end

.fetch(name, *args) ⇒ Object


16
17
18
# File 'lib/engineyard-serverside/rails_assets/strategy.rb', line 16

def self.fetch(name, *args)
  (all[name.to_s] || Shifting).new(*args)
end