Module: Dployr

Defined in:
lib/dployr/init.rb,
lib/dployr/utils.rb,
lib/dployr/version.rb,
lib/dployr/compute/aws.rb,
lib/dployr/compute/gce.rb,
lib/dployr/scripts/scp.rb,
lib/dployr/scripts/ssh.rb,
lib/dployr/commands/ssh.rb,
lib/dployr/scripts/hook.rb,
lib/dployr/commands/base.rb,
lib/dployr/commands/info.rb,
lib/dployr/config/create.rb,
lib/dployr/configuration.rb,
lib/dployr/scripts/shell.rb,
lib/dployr/commands/start.rb,
lib/dployr/commands/utils.rb,
lib/dployr/compute/common.rb,
lib/dployr/commands/config.rb,
lib/dployr/config/instance.rb,
lib/dployr/commands/execute.rb,
lib/dployr/config/constants.rb,
lib/dployr/compute/baremetal.rb,
lib/dployr/config/file_utils.rb,
lib/dployr/scripts/local_shell.rb,
lib/dployr/commands/stop_destroy.rb,
lib/dployr/scripts/default_hooks.rb,
lib/dployr/commands/provision_test.rb

Defined Under Namespace

Modules: Commands, Compute, Config, Scripts, Utils Classes: Configuration, Init

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
16
# File 'lib/dployr/init.rb', line 13

def config
  dployr = Init::instance
  dployr.config if dployr
end

.configure(attributes = {}) {|dployr| ... } ⇒ Object

Yields:

  • (dployr)


8
9
10
11
# File 'lib/dployr/init.rb', line 8

def configure(attributes = {})
  dployr = Init::instance
  yield dployr if block_given?
end

.load(file_path) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/dployr/init.rb', line 18

def load(file_path)
  if Dployr::Config::FileUtils.yaml_file? file_path
    Dployr::Config::FileUtils.read_yaml file_path
  else
    load file_path
  end
end