Sha256: 4a2f6f95b6c0ecef1e9e00674362915bc04a40740a056f358a32f1c23a2addd2

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

$: << File.dirname(__FILE__) unless $:.include?(File.expand_path(File.dirname(__FILE__)))

require "fileutils"
require "formatador"
require 'rubydns'
require 'em-proxy'
require 'http-parser'
require "ostruct"
require "uuid"
require "highline"
require "invoker/version"
require "invoker/logger"
require "invoker/runner"
require "invoker/command_listener/server"
require "invoker/command_listener/client"
require "invoker/power"
require "invoker/errors"
require "invoker/parsers/procfile"
require "invoker/parsers/config"
require "invoker/parsers/option_parser"
require "invoker/commander"
require "invoker/command_worker"
require "invoker/reactor"
require "invoker/event/manager"
require "invoker/process_printer"

module Invoker
  def self.darwin?
    ruby_platform.downcase.include?("darwin")
  end

  def self.ruby_platform
    RUBY_PLATFORM
  end

  def self.can_run_balancer?(throw_warning = true)
    return false unless darwin?
    return true if File.exists?(Invoker::Power::Config::CONFIG_LOCATION)

    if throw_warning
      Invoker::Logger.puts("Invoker has detected setup has not been run. Domain feature will not work without running setup command.".color(:red))
    end
    false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
invoker-1.0.4 lib/invoker.rb
invoker-1.0.3 lib/invoker.rb