Module: Phase

Defined in:
lib/phase.rb,
lib/phase/cli.rb,
lib/phase/dsl.rb,
lib/phase/adapter.rb,
lib/phase/cli/ipa.rb,
lib/phase/cli/ssh.rb,
lib/phase/version.rb,
lib/phase/cli/keys.rb,
lib/phase/cli/logs.rb,
lib/phase/cli/mosh.rb,
lib/phase/cli/build.rb,
lib/phase/cli/deploy.rb,
lib/phase/cli/status.rb,
lib/phase/config/ipa.rb,
lib/phase/util/shell.rb,
lib/phase/cli/command.rb,
lib/phase/kit/ipa/app.rb,
lib/phase/kit/keys/key.rb,
lib/phase/util/console.rb,
lib/phase/config/deploy.rb,
lib/phase/configuration.rb,
lib/phase/kit/ssh/backend.rb,
lib/phase/kit/ssh/command.rb,
lib/phase/kit/ssh/runners.rb,
lib/phase/kit/deploy/build.rb,
lib/phase/kit/deploy/version.rb,
lib/phase/adapters/aws/server.rb,
lib/phase/adapters/aws/subnet.rb,
lib/phase/adapters/aws/network.rb,
lib/phase/kit/deploy/deployment.rb,
lib/phase/adapters/abstract/base.rb,
lib/phase/adapters/abstract/server.rb,
lib/phase/adapters/abstract/network.rb,
lib/phase/adapters/aws/load_balancer.rb,
lib/phase/kit/ssh/bastion_coordinator.rb,
lib/phase/kit/ipa/enterprise_deployment.rb,
lib/phase/adapters/abstract/load_balancer.rb

Defined Under Namespace

Modules: Adapters, CLI, Config, DSL, Deploy, IPA, Keys, SSH, Util Classes: Configuration, ResourceNotFoundError

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.adapterObject



53
54
55
# File 'lib/phase.rb', line 53

def adapter
  config.adapter
end

.configObject



41
42
43
# File 'lib/phase.rb', line 41

def config
  @@config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



49
50
51
# File 'lib/phase.rb', line 49

def configure(&block)
  yield config
end

.load_balancersObject



3
4
5
# File 'lib/phase/adapter.rb', line 3

def load_balancers
  adapter.const_get("LoadBalancer")
end

.networksObject



7
8
9
# File 'lib/phase/adapter.rb', line 7

def networks
  adapter.const_get("Network")
end

.reset_config!Object



45
46
47
# File 'lib/phase.rb', line 45

def reset_config!
  @@config = nil
end

.serversObject



11
12
13
# File 'lib/phase/adapter.rb', line 11

def servers
  adapter.const_get("Server")
end

.subnetsObject



15
16
17
# File 'lib/phase/adapter.rb', line 15

def subnets
  adapter.const_get("Subnet")
end