Sha256: 3ee5cd613440c7a723c5e35ee2fe43c3d549c4e087918000d3fe42bcc6dcd7c9
Contents?: true
Size: 946 Bytes
Versions: 97
Compression:
Stored size: 946 Bytes
Contents
module Isomorfeus module Installer class InstallTargets class << self def execute targets_string = Isomorfeus::Installer.options[:targets] targets_string = 'web' if targets_string == 'all' targets = targets_string.split(' ') targets = targets_string.split(',') if targets.empty? targets = targets_string.split(', ') if targets.empty? # install web first targets.unshift(targets.delete('web')) if targets.include?('web') targets.each do |target| target = target.camelize if Isomorfeus::Installer::Target.const_defined?(target, false) target_class = Isomorfeus::Installer::Target.const_get(target) target_class.execute else raise "No such target #{target} available." end end end end end end end
Version data entries
97 entries across 97 versions & 1 rubygems