Module: Elzar

Defined in:
lib/elzar.rb,
lib/elzar/cli.rb,
lib/elzar/compute.rb,
lib/elzar/version.rb,
lib/elzar/template.rb,
lib/elzar/assistant.rb,
lib/elzar/aws_config.rb,
lib/elzar/ssh_key_locator.rb

Defined Under Namespace

Modules: Assistant, AwsConfig, Cli, Compute, SshKeyLocator, Template

Constant Summary collapse

ROOT_DIR =
File.expand_path File.dirname(__FILE__) + '/../'
CHEF_DIR =
"#{ROOT_DIR}/chef"
ROLES_DIR =
"#{CHEF_DIR}/roles"
COOKBOOK_DIRS =

order matters

['site-cookbooks', 'cookbooks']
VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.create_provision_directory(destination, options = {}) ⇒ Object



20
21
22
23
# File 'lib/elzar.rb', line 20

def self.create_provision_directory(destination, options={})
  Assistant.create_user_provision_dir destination.to_s, options
  Assistant.generate_files destination.to_s, options
end

.merge_and_create_temp_directory(user_dir) ⇒ Object



25
26
27
# File 'lib/elzar.rb', line 25

def self.merge_and_create_temp_directory(user_dir)
  Assistant.merge_and_create_temp_directory user_dir
end

.templates_dirObject



16
17
18
# File 'lib/elzar.rb', line 16

def self.templates_dir
  @templates_dir ||= "#{ROOT_DIR}/lib/elzar/templates"
end

.vagrant_cookbooks_pathObject



29
30
31
# File 'lib/elzar.rb', line 29

def self.vagrant_cookbooks_path
  COOKBOOK_DIRS.map {|dir| "#{CHEF_DIR}/#{dir}" }
end

.vagrant_roles_pathObject



33
34
35
# File 'lib/elzar.rb', line 33

def self.vagrant_roles_path
  ROLES_DIR
end