Module: Ey::Core

Defined in:
lib/ey-core.rb,
lib/ey-core/cli.rb,
lib/ey-core/cli/scp.rb,
lib/ey-core/cli/ssh.rb,
lib/ey-core/cli/web.rb,
lib/ey-core/version.rb,
lib/ey-core/cli/help.rb,
lib/ey-core/cli/init.rb,
lib/ey-core/cli/logs.rb,
lib/ey-core/cli/main.rb,
lib/ey-core/cli/login.rb,
lib/ey-core/cli/deploy.rb,
lib/ey-core/cli/errors.rb,
lib/ey-core/cli/logout.rb,
lib/ey-core/cli/status.rb,
lib/ey-core/cli/whoami.rb,
lib/ey-core/cli/console.rb,
lib/ey-core/cli/recipes.rb,
lib/ey-core/cli/servers.rb,
lib/ey-core/cli/version.rb,
lib/ey-core/cli/accounts.rb,
lib/ey-core/cli/web/main.rb,
lib/ey-core/cli/subcommand.rb,
lib/ey-core/cli/web/enable.rb,
lib/ey-core/cli/web/disable.rb,
lib/ey-core/cli/web/restart.rb,
lib/ey-core/cli/applications.rb,
lib/ey-core/cli/current_user.rb,
lib/ey-core/cli/environments.rb,
lib/ey-core/cli/helpers/chef.rb,
lib/ey-core/cli/helpers/core.rb,
lib/ey-core/cli/recipes/main.rb,
lib/ey-core/cli/recipes/apply.rb,
lib/ey-core/cli/recipes/upload.rb,
lib/ey-core/cli/timeout_deploy.rb,
lib/ey-core/cli/helpers/archive.rb,
lib/ey-core/cli/recipes/download.rb,
lib/ey-core/cli/helpers/deprecated.rb,
lib/ey-core/cli/helpers/server_sieve.rb,
lib/ey-core/cli/helpers/log_streaming.rb,
lib/ey-core/cli/helpers/stream_printer.rb

Defined Under Namespace

Modules: Associations, Cli, Mock, Request, Subscribable Classes: Client, Collection, Logger, MemoryCache, Model, RequestFailure, Response, ResponseCache, TokenAuthentication

Constant Summary collapse

IP_REGEX =
/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(\/(\d|[1-2]\d|3[0-2]))?/
VERSION =
"3.1.7"

Class Method Summary collapse

Class Method Details

.colocated?(location_a, location_b) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ey-core.rb', line 35

def self.colocated?(location_a, location_b)
  location_a.gsub(/[a-z]$/, "") == location_b.gsub(/[a-z]$/, "")
end

.paging_parameters(params) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/ey-core.rb', line 26

def self.paging_parameters(params)
  if url = params['url']
    Addressable::URI.parse(url).query_values
  else
    params
  end
end