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

Version Path
isomorfeus-23.9.0.rc12 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc11 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc10 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc9 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc8 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc7 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc6 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc5 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc4 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc3 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc2 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.9.0.rc1 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.8.0.rc3 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.8.0.rc2 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.8.0.rc1 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.7.0.rc5 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.7.0.rc4 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.7.0.rc3 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.7.0.rc2 lib/isomorfeus/installer/install_targets.rb
isomorfeus-23.7.0.rc1 lib/isomorfeus/installer/install_targets.rb