class Spinup::PlaygroundBuilder

Public Class Methods

new(dir, opener) click to toggle source
# File lib/spinup/playground_builder.rb, line 8
def initialize(dir, opener)
  @dir = dir
  @opener = opener
end

Public Instance Methods

call(playground_type, config) click to toggle source
# File lib/spinup/playground_builder.rb, line 13
def call(playground_type, config)
  abort "#{playground_type} is not supported." if config.nil?

  playground = Playground.new(playground_type.to_sym, config)
  playground.establish(@dir) { @opener.(@dir) }
end